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/3124#issuecomment-879975673,https://api.github.com/repos/pydata/xarray/issues/3124,879975673,MDEyOklzc3VlQ29tbWVudDg3OTk3NTY3Mw==,5635139,2021-07-14T15:10:40Z,2021-07-14T15:10:40Z,MEMBER,@NayanTalmale please open a discussion with a reproducible example,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467814673
https://github.com/pydata/xarray/issues/3124#issuecomment-511209340,https://api.github.com/repos/pydata/xarray/issues/3124,511209340,MDEyOklzc3VlQ29tbWVudDUxMTIwOTM0MA==,2448579,2019-07-14T14:53:57Z,2019-07-14T14:53:57Z,MEMBER,"If you use `data = xr.open_mfdataset(...)`, the above solution will work","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467814673
https://github.com/pydata/xarray/issues/3124#issuecomment-511204486,https://api.github.com/repos/pydata/xarray/issues/3124,511204486,MDEyOklzc3VlQ29tbWVudDUxMTIwNDQ4Ng==,2448579,2019-07-14T13:49:12Z,2019-07-14T13:49:12Z,MEMBER,Nice! I should use sel more,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467814673
https://github.com/pydata/xarray/issues/3124#issuecomment-511204028,https://api.github.com/repos/pydata/xarray/issues/3124,511204028,MDEyOklzc3VlQ29tbWVudDUxMTIwNDAyOA==,6628425,2019-07-14T13:42:47Z,2019-07-14T13:42:47Z,MEMBER,"I normally use something like this, which results in the equivalent of @dcherian's suggestion, but is a bit more direct:
```python
data = data.sel(time=data.time.dt.month.isin([1, 2, 3, 10, 11, 12]))
```
@mada0007 you can then subset in time to truncate the time series further afterwards:
```python
result = data.sel(time=slice('1950-04', '1960-04'))
```","{""total_count"": 6, ""+1"": 6, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467814673
https://github.com/pydata/xarray/issues/3124#issuecomment-511202616,https://api.github.com/repos/pydata/xarray/issues/3124,511202616,MDEyOklzc3VlQ29tbWVudDUxMTIwMjYxNg==,2448579,2019-07-14T13:24:25Z,2019-07-14T13:24:25Z,MEMBER,"You want something like `data.where(data.time.dt.month.isin([1,2,3,10,11,12]), drop=True)` I think","{""total_count"": 5, ""+1"": 5, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,467814673