Python para usuários de R
Daniel Chen
Instructor
plot()kind para plotkind):line: gráfico de linha (padrão)bar: barras verticaisbarh: barras horizontaishist: histogramabox: boxplotkde: gráfico de Kernel Density Estimationdensity: igual a 'kde'area: áreapie: pizzascatter: dispersãohexbin: hexbinimport matplotlib.pyplot as plt
iris['sepal_length'].plot(kind='hist')
plt.show()

cts = iris['species'].value_counts()
cts.plot(kind='bar')
plt.show()

iris.plot(kind='scatter', x='Sepal.Length', y='Sepal.Width')
plt.show()

iris.plot(kind='box')
plt.show()

iris.boxplot(by='Species', column='Sepal.Length')
plt.show()

Python para usuários de R