Created
January 21, 2023 04:13
-
-
Save muhammadanas0716/aca48aae5ad85a2a4bcecb28c00d4c67 to your computer and use it in GitHub Desktop.
ππ Pairwise plot is a favorite in exploratory analysis to understand the relationship between all possible pairs of numeric variables. It is a must-have tool for bivariate analysis. ππ
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
# Import needed libs | |
import numpy as np | |
import pandas as pd | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# Load Dataset | |
df = sns.load_dataset('iris') | |
# Plot | |
plt.figure(figsize=(10,8), dpi= 80) | |
sns.pairplot(df, kind="scatter", hue="species", plot_kws=dict(s=80, edgecolor="white", linewidth=2.5)) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment