You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is still broken with Timedeltas
Gonna add some tests, and try real quick for a fix.
(gonna ignore the incorrect bins for now?)
repro:
In [21]: df = DataFrame({'time':timedelta_range('1 day', '4 day', freq='D')},
index=timedelta_range('1 day', '4 day', freq='D'))
In [22]: df
Out[22]:
time
1 days 1 days
2 days 2 days
3 days 3 days
4 days 4 days
In [23]: df.resample('2D').first()
Out[23]:
time
1 days 1 days
3 days 3 days
5 days NaT
In [24]: df.time.resample('2D').first()
Out[24]:
1 days 8.640000e+13
3 days 2.592000e+14
5 days NaN
Freq: 2D, Name: time, dtype: float64
From SO: http://stackoverflow.com/questions/37106810/bug-in-python-pandas-pandas-series-resample-vs-pandas-dataframe-resample
Tested it with latest master
The text was updated successfully, but these errors were encountered: