Answers for "group a dataset"

0

group a dataset

#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']
Posted by: Guest on August-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language