.pivot_table

Графики в Pandas, plot()

df.plot()

df.plot(title='Any Title')

df.plot(x='col2', y='col1', style='o', xlim=(0, 100), grid=True, figsize=(5, 5))

style='o' (точками)
style='x' (крестиками)
style='o-' (кружками и линиями)

xlim=(min, max)

grid для отображения сетки

figsize для ширины и высоты графика

Еще возможности.

Две гистограммы с помощью метода ax для plot на одной иллюстрации:

ax = df.plot(kind='hist', y='col1', histtype='step', linewidth=4, alpha=0.65, label='old_first')

Подписка на RSS - .pivot_table