diff --git a/RELEASE.rst b/RELEASE.rst index c672fb65ee96f..2772662b10529 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -291,6 +291,7 @@ pandas 0.11.0 .. _GH2781: https://github.com/pydata/pandas/issues/2781 .. _GH2787: https://github.com/pydata/pandas/issues/2787 .. _GH2437: https://github.com/pydata/pandas/issues/2437 +.. _GH2753: https://github.com/pydata/pandas/issues/2753 .. _GH2793: https://github.com/pydata/pandas/issues/2793 .. _GH2795: https://github.com/pydata/pandas/issues/2795 .. _GH2797: https://github.com/pydata/pandas/issues/2797 diff --git a/pandas/tseries/tests/test_resample.py b/pandas/tseries/tests/test_resample.py index 140f40fd611c8..02a3030f69519 100644 --- a/pandas/tseries/tests/test_resample.py +++ b/pandas/tseries/tests/test_resample.py @@ -4,7 +4,7 @@ import numpy as np -from pandas import Series, TimeSeries, DataFrame, Panel, isnull, notnull +from pandas import Series, TimeSeries, DataFrame, Panel, isnull, notnull, Timestamp from pandas.tseries.index import date_range from pandas.tseries.offsets import Minute, BDay @@ -934,6 +934,14 @@ def test_resample_weekly_bug_1726(self): # it works! df.resample('W-MON', how='first', closed='left', label='left') + def test_resample_bms_2752(self): + # GH2753 + foo = pd.Series(index=pd.bdate_range('20000101','20000201')) + res1 = foo.resample("BMS") + res2 = foo.resample("BMS").resample("B") + self.assertEqual(res1.index[0], Timestamp('20000103')) + self.assertEqual(res1.index[0], res2.index[0]) + # def test_monthly_convention_span(self): # rng = period_range('2000-01', periods=3, freq='M') # ts = Series(np.arange(3), index=rng)