Skip to content

Commit fe6e785

Browse files
committed
missed formatting and whatsnew
1 parent 835365d commit fe6e785

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

doc/source/whatsnew/v2.1.0.rst

+2
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,11 @@ Datetimelike
364364
- Bug in :func:`date_range` when ``freq`` was a :class:`DateOffset` with ``nanoseconds`` (:issue:`46877`)
365365
- Bug in :meth:`Timestamp.date`, :meth:`Timestamp.isocalendar`, :meth:`Timestamp.timetuple`, and :meth:`Timestamp.toordinal` were returning incorrect results for inputs outside those supported by the Python standard library's datetime module (:issue:`53668`)
366366
- Bug in :meth:`Timestamp.round` with values close to the implementation bounds returning incorrect results instead of raising ``OutOfBoundsDatetime`` (:issue:`51494`)
367+
- Bug in :meth:`Timestamp.weekday` with days incorrectly calculating before year 1752 (:issue:`53738`)
367368
- Bug in :meth:`arrays.DatetimeArray.map` and :meth:`DatetimeIndex.map`, where the supplied callable operated array-wise instead of element-wise (:issue:`51977`)
368369
- Bug in constructing a :class:`Series` or :class:`DataFrame` from a datetime or timedelta scalar always inferring nanosecond resolution instead of inferring from the input (:issue:`52212`)
369370
- Bug in parsing datetime strings with weekday but no day e.g. "2023 Sept Thu" incorrectly raising ``AttributeError`` instead of ``ValueError`` (:issue:`52659`)
371+
-
370372

371373
Timedelta
372374
^^^^^^^^^

pandas/tests/scalar/timestamp/test_timestamp.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,16 @@ def test_resolution(self):
223223
assert dt.as_unit("ms").resolution == Timedelta(milliseconds=1)
224224
assert dt.as_unit("s").resolution == Timedelta(seconds=1)
225225

226-
@pytest.mark.parametrize("date_string,expected", [("0000-2-29", 1), ("0000-3-1", 2), ("1582-10-14", 3), ("1582-10-15", 4)])
226+
@pytest.mark.parametrize(
227+
"date_string,expected",
228+
[("0000-2-29", 1), ("0000-3-1", 2), ("1582-10-14", 3), ("1582-10-15", 4)],
229+
)
227230
def test_dow_historic(self, date_string, expected):
228231
# GH 53738
229232
dt = Timestamp(date_string)
230-
dow = dt.weekday()
233+
dow = dt.weekday()
231234
assert dow == expected
232-
235+
233236

234237
class TestTimestamp:
235238
def test_default_to_stdlib_utc(self):

0 commit comments

Comments
 (0)