Skip to content

Instantly share code, notes, and snippets.

Created Jan 4, 2021
What would you like to do?
missing_value = 100 * train.isnull().sum()/len(train)
missing_value = missing_value.reset_index()
missing_value.columns = ['variables','missing values in percentage']
#import as pio
#pio.templates.default = "none"
# heatmap
fig = px.imshow(train.isnull().T,template='ggplot2')
fig.update_layout(title='Missing values in data set')
# barplot
fig =, y='missing values in percentage',x='variables',title='Missing values % in each column',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment