Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to count null values in pandas and return as percentage

percent_missing = df.isnull().sum() * 100 / len(df)
missing_value_df = pd.DataFrame({'column_name': df.columns,
                                 'percent_missing': percent_missing})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #null #values #pandas #return #percentage
ADD COMMENT
Topic
Name
1+8 =