# What is wrong with the below code? [closed]

I have been working on a project which i took from kaggle. I didn't get the result as mentioned in the website. What am I doing wrong here?

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

train[train.columns[2:]].std().plot('hist')

train[train.columns[2:]].mean().plot('hist')
plt.title('Distribution of means/stds of all columns')

plt.show()

print(train.isnull().any().any())

print('Distribution of first 28 columns')
plt.figure(figsize=(26,24))
for i, col in enumerate(list(train)[2:30]):
plt.subplot(7, 4, i+1)
plt.hist(train[col])
plt.title(col)

plt.show()


Here is the post

• The link you provided is not working. – Ankit Seth Aug 1 '19 at 6:16
• @AnkitSeth updated the link – Alexpandiyan Chokkan Aug 1 '19 at 6:18
• You are trying to plot the distribution of first 28 column and it doesn't match with result as mentioned in website. Code looks okay to me. Is there any change in dataset you have download. – SUN Aug 1 '19 at 7:30