Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index id date variation
- 2313 7034 2018-03-14 4.139148e-06
- 2314 7034 2018-03-13 4.953194e-07
- 2315 7034 2018-03-12 2.854749e-06
- 2316 7034 2018-03-09 3.907458e-06
- 2317 7034 2018-03-08 1.662412e-06
- 2318 7034 2018-03-07 1.346433e-06
- 2319 7034 2018-03-06 8.731700e-06
- 2320 7034 2018-03-05 7.145597e-06
- 2321 7034 2018-03-02 4.893283e-06
- ...
- test.groupby(['id','date'])['variation'].rolling(window=1,freq='Y',on='date').mean()
- ValueError: invalid on specified as date, must be a column (if DataFrame) or None
Add Comment
Please, Sign In to add comment