html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/2755#issuecomment-461824903,https://api.github.com/repos/pydata/xarray/issues/2755,461824903,MDEyOklzc3VlQ29tbWVudDQ2MTgyNDkwMw==,2448579,2019-02-08T14:43:59Z,2019-02-08T14:43:59Z,MEMBER,We should print a better error message when the user passes a dimension to rolling. ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,408010761 https://github.com/pydata/xarray/issues/2755#issuecomment-461717329,https://api.github.com/repos/pydata/xarray/issues/2755,461717329,MDEyOklzc3VlQ29tbWVudDQ2MTcxNzMyOQ==,44284270,2019-02-08T07:42:34Z,2019-02-08T07:52:22Z,NONE,"Hi all so finally it worked, just for the benefit of others this is how it wents ``` aa = dset.where(dset.precip<50).rolling(time=59).count() ``` this works but brings up a dataset which i then convert to xarray dataset with ``` aa = aa.to_array() ``` Thanks to all for the guidance.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,408010761 https://github.com/pydata/xarray/issues/2755#issuecomment-461712654,https://api.github.com/repos/pydata/xarray/issues/2755,461712654,MDEyOklzc3VlQ29tbWVudDQ2MTcxMjY1NA==,6815844,2019-02-08T07:16:15Z,2019-02-08T07:16:15Z,MEMBER,"You don't need 'time' argument in `.count`. Probably ``` aa = dset.where(dset.precip<50).rolling(time=59).count() ```","{""total_count"": 2, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 1, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,408010761 https://github.com/pydata/xarray/issues/2755#issuecomment-461707837,https://api.github.com/repos/pydata/xarray/issues/2755,461707837,MDEyOklzc3VlQ29tbWVudDQ2MTcwNzgzNw==,44284270,2019-02-08T06:48:24Z,2019-02-08T06:48:24Z,NONE,"Hi thanks but yes I want something like you have written I tried it and got the following error aa = dset.where(dset.precip<50).rolling(time=59).count('time') Traceback (most recent call last): File ""/Users/mada0007/anaconda3/envs/RAWORK/lib/python3.6/site-packages/IPython/core/interactiveshell.py"", line 3267, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File """", line 1, in aa = dset.where(dset.precip<50).rolling(time=59).count('time') TypeError: rolling_count() takes 1 positional argument but 2 were given ","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,408010761 https://github.com/pydata/xarray/issues/2755#issuecomment-461706136,https://api.github.com/repos/pydata/xarray/issues/2755,461706136,MDEyOklzc3VlQ29tbWVudDQ2MTcwNjEzNg==,2448579,2019-02-08T06:37:31Z,2019-02-08T06:37:31Z,MEMBER,I'm very confused by your code. I think you want `dset.where(dset.precip < 50).rolling(time=59).count('time')`?,"{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,408010761