Histogram

Similar to a density plot, it visualizes how numerical data is distributed.

import matplotlib.pyplot as plt
import seaborn as sns


df = sns.load_dataset("iris")
sns.set(rc={"figure.figsize": (12, 8)})
sns.histplot(data=df["sepal_length"], binwidth=0.5)

png

Comments

(Comments will appear after approval)