Skip to content

Instantly share code, notes, and snippets.

@muhammadanas0716
Created January 21, 2023 04:13
Show Gist options
  • Save muhammadanas0716/aca48aae5ad85a2a4bcecb28c00d4c67 to your computer and use it in GitHub Desktop.
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. πŸ“‰πŸ“‰
# 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