We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11485fb commit 3b6d5f4Copy full SHA for 3b6d5f4
pandas/tests/resample/test_datetime_index.py
@@ -757,11 +757,11 @@ def test_resample_float_base():
757
"2018-11-26 16:17:44.51",
758
"2018-11-26 16:17:45.51"])
759
s = Series(np.arange(3), index=dt)
760
+
761
base = 17 + 43.51 / 60
- g = s.groupby(pd.Grouper(freq="3min", base=base))
762
- result = g.size()
763
- expected = Series(3, index=[dt[0]])
764
- assert_series_equal(result, expected)
+ resampled = s.resample("3min", base=base).mean()
+ exp_index = DatetimeIndex(["2018-11-26 16:17:43.51"])
+ tm.assert_index_equal(resampled.index, exp_index)
765
766
767
def test_resample_daily_anchored():
0 commit comments