wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Other
22.29k stars 15.2k forks source link

Ch12: TimeGrouper is deprecated #121

Closed trakru closed 2 years ago

trakru commented 4 years ago

Under "Grouped Time Resampling"

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

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

wesm commented 4 years ago

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

wesm commented 2 years ago

This is fixed in the 3rd edition