Spaces:
Sleeping
Sleeping
File size: 286 Bytes
f0cbc29 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | def profile_dataframe(df):
profile = {}
profile["rows"] = len(df)
profile["columns"] = len(df.columns)
profile["missing"] = (
df.isnull().sum().sum()
)
profile["duplicates"] = (
df.duplicated().sum()
)
return profile |