-
Hi, do you know if I am trying to resample an
If I convert the data array to pandas, which returns a The code to reproduce the issue it is in the last two cells of the following notebook: Any advice on how to proper use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
the issue is that your rawdata = rawdata.sortby("time") I'm not sure why |
Beta Was this translation helpful? Give feedback.
the issue is that your
time
variable is not sorted. You can fix that usingargsort
sortby
:I'm not sure why
pandas
works for unsorted indexes. Maybe they automatically sort the indexes before resampling?