Seaborne

Plot a kernel density plot of two distributions

fig, ax = plt.subplots()

ax = sns.kdeplot(s)

ax = sns.kdeplot(s2)

ax.legend(['s', 's2'])

Scatter plot

comparing all columns

sns.pairplot(df)

Scatter plot


Heatmap (of correlation)

fig, ax = plt.subplots()

ax = sns.heatmap(df.corr(), annot=True, fmt="d")

ax.set_xlabel('xlabel')

ax.set_ylabel('ylabel')

Box plot

sns.boxplot(x="X", y="Y", data=df, showfliers=False)

Bar plot

ax = sns.barplot(x="X", y="Y", hue="CLASS", data=df)

Linear fit with residuals

sns.scatterplot(data=quartet,x='x',y='y')

sns.lineplot(data=quartet,x='x',y='pred_y',color='red')

plt.vlines(quartet['x'],quartet['y'],quartet['y']-quartet['residual'])