Some kind of plots

Distribution (Histogram)

import matplotlib.pyplot as plt
df.hist(bins=50, figsize=(20, 15))

Distribution (Density)

A density plot is a smoothed, continuous version of a histogram estimated from the data.

df.plot(kind='density', subplots=True, layout=(8,8), sharex=False, legend=False, figsize = (12,12))


corr = train_df.corr()

Heatmap (needs correlations)

%matplotlib inline
import seaborn as sns
plt.figure(figsize = (16,8))
sns.heatmap(corr, annot = True)


Histogram plot of select variable(s)

from matplotlib import pyplot
pyplot.hist(train_X.iloc[:, 1])
pyplot.hist(train_X.iloc[:, 2])

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.