Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Jan 4, 2021
Embed
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 plotly.io as pio
#pio.templates.default = "none"
# heatmap
fig = px.imshow(train.isnull().T,template='ggplot2')
fig.update_layout(title='Missing values in data set')
fig.show()
# barplot
fig = px.bar(missing_value, y='missing values in percentage',x='variables',title='Missing values % in each column',
template='ggplot2');
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment