Skip to content

Instantly share code, notes, and snippets.

@neksa
Last active August 8, 2018 18:45
Show Gist options
  • Save neksa/495ce849dbd796e61b60b093a4f267d3 to your computer and use it in GitHub Desktop.
Save neksa/495ce849dbd796e61b60b093a4f267d3 to your computer and use it in GitHub Desktop.
%matplotlib inline
import seaborn as sns
sns.set(style="ticks")
df = sns.load_dataset("iris")
sns.pairplot(df, x_vars=["sepal_length", "sepal_width"], y_vars=["petal_length", "petal_width"], markers=".", kind="reg")
# round(df.corr()**2, 2)
sns.heatmap(df.corr(), cmap=sns.color_palette("RdBu_r", 7), annot=True, fmt=".2f", center=0, vmin=-1.0, vmax=1.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment