Seaborne
Plot a kernel density plot of two distributions
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
Scatter plot
comparing all columns
sns.pairplot(df)
Scatter plot
Scatter plot
Heatmap (of correlation)
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
Box plot
sns.boxplot(x="X", y="Y", data=df, showfliers=False)
Bar plot
Bar plot
ax = sns.barplot(x="X", y="Y", hue="CLASS", data=df)
Linear fit with residuals
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'])