def general_description(self):
# General data description:
# Filename:
if self._path_file is None:
file_name = "file with no path"
else:
file_name = self._path_file.split('/')[-1]
# Counting the number of columns:
row_number = self._df.count()
# Counting the number of rows:
col_number = len(self._df.columns)
# Writting General Description table:
temp_obj = GeneralDescripTable(file_name, col_number, row_number)
display(temp_obj)
data_types = len(set([x[1] for x in self._df.dtypes]))
return self._create_dict(["filename", "size", "columns", "rows", "datatypes"],
[file_name, 500, col_number, row_number, data_types])
# Funtion to analize column datatypes, it also plot proportion datatypes and histograms:
评论列表
文章目录