File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,4 @@ Bug Fixes
43
43
44
44
45
45
- Explicit check in ``to_stata`` and ``StataWriter`` for out-of-range values when writing doubles (:issue:`14618`)
46
- - Fix AmbiguousTimeError exception when resampling a DatetimeIndex in local TZ, covering a DST change (:issue:`14682`)
46
+ - Fix `` AmbiguousTimeError`` exception when resampling a `` DatetimeIndex`` in local TZ, covering a DST change (:issue:`14682`)
Original file line number Diff line number Diff line change @@ -1932,9 +1932,11 @@ def test_resample_across_dst(self):
1932
1932
.dt .tz_localize ('UTC' )
1933
1933
.dt .tz_convert ('Europe/Madrid' ))
1934
1934
df = DataFrame ([5 , 5 ], index = dti1 )
1935
- assert_frame_equal (
1936
- df .resample (rule = 'H' ).sum (),
1937
- DataFrame ([5 , 5 ], index = dti2 ))
1935
+
1936
+ result = df .resample (rule = 'H' ).sum ()
1937
+ expected = DataFrame ([5 , 5 ], index = dti2 )
1938
+
1939
+ assert_frame_equal (result , expected )
1938
1940
1939
1941
def test_resample_dst_anchor (self ):
1940
1942
# 5172
You can’t perform that action at this time.
0 commit comments