seaborn distplot / displot with multiple distributions

The important thing is to sort the dataframe by values where target is 0, 1, or 2. import numpy as np import pandas as pd from sklearn.datasets import load_iris import seaborn as sns iris = load_iris() iris = pd.DataFrame(data=np.c_[iris[‘data’], iris[‘target’]], columns=iris[‘feature_names’] + [‘target’]) # Sort the dataframe by target target_0 = iris.loc[iris[‘target’] == 0] target_1 … Read more