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/2197#issuecomment-393898567,https://api.github.com/repos/pydata/xarray/issues/2197,393898567,MDEyOklzc3VlQ29tbWVudDM5Mzg5ODU2Nw==,35919497,2018-06-01T14:30:46Z,2018-06-01T14:32:53Z,COLLABORATOR,"Also with oversampling we have the same problem (2007-02-02 02:00:00 is out of bound):
``` python
import numpy as np
import pandas as pd
import xarray as xr
time = np.arange('2007-01-01 00:00:00', '2007-02-02 00:00:00', dtype='datetime64[ns]')
arr = xr.DataArray(
np.arange(time.size), coords=[time,], dims=('time',), name='data'
)
resampler = arr.resample(time='3h', base=2, label='right')
resampler
DatetimeIndex(['2007-01-01 02:00:00', '2007-01-01 05:00:00',
'2007-01-01 08:00:00', '2007-01-01 11:00:00',
'2007-01-01 14:00:00', '2007-01-01 17:00:00',
'2007-01-01 20:00:00', '2007-01-01 23:00:00',
'2007-01-02 02:00:00', '2007-01-02 05:00:00',
...
'2007-01-31 23:00:00', '2007-02-01 02:00:00',
'2007-02-01 05:00:00', '2007-02-01 08:00:00',
'2007-02-01 11:00:00', '2007-02-01 14:00:00',
'2007-02-01 17:00:00', '2007-02-01 20:00:00',
'2007-02-01 23:00:00', '2007-02-02 02:00:00'],
dtype='datetime64[ns]', name='time', length=257, freq='3H')
```
The fix is really very easy, I can try to make pull request.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,327591169