python - Find out the percentage of missing values in each column in the given dataset - Stack Overflow | thiscodeWorks

PHOTO EMBED

Sun Jul 10 2022 02:35:08 GMT+0000 (Coordinated Universal Time)

Saved by @ram_123

percent_missing = df.isnull().sum() * 100 / len(df)
missing_value_df = pd.DataFrame({'column_name': df.columns,
                                 'percent_missing': percent_missing})
content_copyCOPY

https://www.thiscodeworks.com/python-find-out-the-percentage-of-missing-values-in-each-column-in-the-given-dataset-stack-overflow-python/607d4c3f6013b5001411542c