wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ch12: TimeGrouper is deprecated

trakru opened this issue · comments

Under "Grouped Time Resampling"

time_key = pd.TimeGrouper('5min')
is incorrect/deprecated

the line should now read:
time_key = pd.Grouper(freq='5min')

Will fix. I'm overdue for an errata fixing sprint, I will get to it sometime in 2020

This is fixed in the 3rd edition