Last active
August 8, 2018 18:45
-
-
Save neksa/495ce849dbd796e61b60b093a4f267d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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