Replies: 3 comments
-
http://xarray.pydata.org/en/stable/generated/xarray.DataArray.rolling.html What did you try? What did not work out? |
Beta Was this translation helpful? Give feedback.
-
Yes, i follow that guidance. That guide doesn't explicitly explain use cases of kwargs: |
Beta Was this translation helpful? Give feedback.
-
da.rolling({"x": 3}) # dim
da.rolling(x=3) # window_kwargs however, you might actually be looking for da.resample({"time": "1M"}) # indexer form
da.resample(time="1M") # indexer_kwargs form Edit: see also #3330, which requests adding support for specifying the window size in the units of the dimension. |
Beta Was this translation helpful? Give feedback.
-
Hi team,
I am trying to rolling by Monthly with Xarray DataArray
With Pandas Dataframe, i can use:
df.rolling("30D") or df.rolling("1M")
How can i do this with Xarray ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions