-
-
Save amankharwal/48acf18b045aefedeaad3af8aa23eea8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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