📜  分组数据集 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:38.307000             🧑  作者: Mango

代码示例1
#DataFrame.groupby() method
e.g
day.groupby('month')

e.g2

day['month'] = day['date_time'].dt.month
by_month = day.groupby('month').mean()
by_month['traffic_volume']