Vizualizarea datelor cu Seaborn – nivel intermediar
Chris Moffitt
Instructor

matplotlib oferă elementele de bază pentru vizualizările Seabornimport matplotlib.pyplot as plt import pandas as pddf = pd.read_csv("wines.csv")fig, ax = plt.subplots() ax.hist(df['alcohol'])

pandas este o bibliotecă fundamentală pentru analiza datelorimport pandas as pddf = pd.read_csv("wines.csv") df['alcohol'].plot.hist()

histplot este similar cu histograma prezentată în exemplele anterioareimport seaborn as snssns.histplot(df['alcohol'])

displot utilizează histplot și alte funcții pentru reprezentarea distribuțiilorimport seaborn as snssns.displot(df['alcohol'], kind='kde')

df['alcohol'].plot.hist()

sns.displot(df['alcohol'])

Vizualizarea datelor cu Seaborn – nivel intermediar