jvns / pandas-cookbook

Recipes for using Python's pandas library
6.68k stars 2.32k forks source link

Update to Chapter 6 #46

Open zfrankel opened 8 years ago

zfrankel commented 8 years ago

is_snowing.astype(float).resample('M', how=np.mean).plot(kind='bar')

FutureWarning: how in .resample() is deprecated the new syntax is .resample(...)..apply() if name == 'main':

The new way to write it is: is_snowing.astype(float).resample('M').apply(np.mean).plot(kind='bar')

Thanks!