Skip to content

Commit c664b28

Browse files
author
Matt Roeschke
committed
Adjust resample tests
1 parent 3330c9b commit c664b28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/test_resample.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ def test_resample_dst_anchor(self):
20312031
# 5172
20322032
dti = DatetimeIndex([datetime(2012, 11, 4, 23)], tz='US/Eastern')
20332033
df = DataFrame([5], index=dti)
2034-
assert_frame_equal(df.resample(rule='D').sum(),
2034+
assert_frame_equal(df.resample(rule='CD').sum(),
20352035
DataFrame([5], index=df.index.normalize()))
20362036
df.resample(rule='MS').sum()
20372037
assert_frame_equal(
@@ -2085,14 +2085,14 @@ def test_resample_dst_anchor(self):
20852085

20862086
df_daily = df['10/26/2013':'10/29/2013']
20872087
assert_frame_equal(
2088-
df_daily.resample("D").agg({"a": "min", "b": "max", "c": "count"})
2088+
df_daily.resample("CD").agg({"a": "min", "b": "max", "c": "count"})
20892089
[["a", "b", "c"]],
20902090
DataFrame({"a": [1248, 1296, 1346, 1394],
20912091
"b": [1295, 1345, 1393, 1441],
20922092
"c": [48, 50, 48, 48]},
20932093
index=date_range('10/26/2013', '10/29/2013',
2094-
freq='D', tz='Europe/Paris')),
2095-
'D Frequency')
2094+
freq='CD', tz='Europe/Paris')),
2095+
'CD Frequency')
20962096

20972097
def test_downsample_across_dst(self):
20982098
# GH 8531

0 commit comments

Comments
 (0)