Skip to content

Commit d90afaf

Browse files
committed
Addressing additional code inspection comments
1 parent 817ed97 commit d90afaf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/source/whatsnew/v0.19.2.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Bug Fixes
4343

4444

4545
- 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`)

pandas/tseries/tests/test_resample.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1932,9 +1932,11 @@ def test_resample_across_dst(self):
19321932
.dt.tz_localize('UTC')
19331933
.dt.tz_convert('Europe/Madrid'))
19341934
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)
19381940

19391941
def test_resample_dst_anchor(self):
19401942
# 5172

0 commit comments

Comments
 (0)