Skip to content

Commit b829ea2

Browse files
committed
Fix lint error
1 parent 1aad541 commit b829ea2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/source/whatsnew/v0.21.0.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,11 @@ Conversion
487487
- Bug in ``IntervalIndex.is_non_overlapping_monotonic`` when intervals are closed on both sides and overlap at a point (:issue:`16560`)
488488
- Bug in :func:`Series.fillna` returns frame when ``inplace=True`` and ``value`` is dict (:issue:`16156`)
489489
- Bug in :attr:`Timestamp.weekday_name` returning a UTC-based weekday name when localized to a timezone (:issue:`17354`)
490+
<<<<<<< 1aad541e5d75b62ff2c8e2b433b0531836c7627f
490491
- Bug in ``Timestamp.replace`` when replacing ``tzinfo`` around DST changes (:issue:`15683`)
492+
=======
493+
494+
>>>>>>> Fix lint error
491495
- Bug in localization of a naive, datetime string in a ``Series`` constructor with a ``datetime[ns, timezone]`` dtype (:issue:`174151`)
492496

493497
Indexing

pandas/core/dtypes/cast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ def maybe_cast_to_datetime(value, dtype, errors='raise'):
971971
# Strings here are naive, so directly localize
972972
value = value.tz_localize(dtype.tz)
973973
else:
974-
# Numeric values are UTC at this point,
974+
# Numeric values are UTC at this point,
975975
# so localize and convert
976976
value = (value.tz_localize('UTC')
977977
.tz_convert(dtype.tz))

0 commit comments

Comments
 (0)