Tipuri de grafice categoriale

Vizualizarea datelor cu Seaborn – nivel intermediar

Chris Moffitt

Instructor

Date categoriale

  • Date cu un număr limitat și fix de valori
  • De obicei combinate cu date numerice
  • Exemple:
    • Geografie (țară, stat, regiune)
    • Gen
    • Etnie
    • Grupă sanguină
    • Culoarea ochilor
Vizualizarea datelor cu Seaborn – nivel intermediar

Tipuri de grafice - per observație

Grafice categoriale per observație

Vizualizarea datelor cu Seaborn – nivel intermediar

Tipuri de grafice - reprezentări abstracte

Grafice categoriale abstracte

Vizualizarea datelor cu Seaborn – nivel intermediar

Tipuri de grafice - estimări statistice

Grafice categoriale statistice

Vizualizarea datelor cu Seaborn – nivel intermediar

Grafice per observație - stripplot

sns.stripplot(data=df, y="DRG Definition",
              x="Average Covered Charges",
              jitter=True)

Exemplu stripplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Grafice per observație - swarmplot

sns.swarmplot(data=df, y="DRG Definition",
              x="Average Covered Charges")

Exemplu swarmplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Reprezentări abstracte - boxplot

sns.boxplot(data=df, y="DRG Definition",
            x="Average Covered Charges")

Exemplu boxplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Reprezentare abstractă - violinplot

sns.violinplot(data=df, y="DRG Definition",
               x="Average Covered Charges")

Exemplu violinplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Reprezentare abstractă - boxenplot

sns.boxenplot(data=df, y="DRG Definition",
              x="Average Covered Charges")

Exemplu boxenplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Estimări statistice - barplot

sns.barplot(data=df, y="DRG Definition", 
            x="Average Covered Charges",
            hue="Region")

Exemplu barplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Estimări statistice - pointplot

sns.pointplot(data=df, y="DRG Definition", 
              x="Average Covered Charges",
              hue="Region")

Exemplu pointplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Estimări statistice - countplot

sns.countplot(data=df, y="DRG_Code", hue="Region")

Exemplu countplot

Vizualizarea datelor cu Seaborn – nivel intermediar

Să exersăm!

Vizualizarea datelor cu Seaborn – nivel intermediar

Preparing Video For Download...