Guest User

Untitled

a guest
Mar 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. index id date variation
  2. 2313 7034 2018-03-14 4.139148e-06
  3. 2314 7034 2018-03-13 4.953194e-07
  4. 2315 7034 2018-03-12 2.854749e-06
  5. 2316 7034 2018-03-09 3.907458e-06
  6. 2317 7034 2018-03-08 1.662412e-06
  7. 2318 7034 2018-03-07 1.346433e-06
  8. 2319 7034 2018-03-06 8.731700e-06
  9. 2320 7034 2018-03-05 7.145597e-06
  10. 2321 7034 2018-03-02 4.893283e-06
  11. ...
  12.  
  13. test.groupby(['id','date'])['variation'].rolling(window=1,freq='Y',on='date').mean()
  14.  
  15. ValueError: invalid on specified as date, must be a column (if DataFrame) or None
Add Comment
Please, Sign In to add comment