Skip to content

Commit 13fc569

Browse files
committed
GH ref
1 parent 847993e commit 13fc569

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@ Datetimelike
706706
- Bug in :meth:`to_datetime` reports incorrect index in case of any failure scenario. (:issue:`58298`)
707707
- Bug in :meth:`to_datetime` with ``format="ISO8601"`` and ``utc=True`` where naive timestamps incorrectly inherited timezone offset from previous timestamps in a series. (:issue:`61389`)
708708
- Bug in :meth:`to_datetime` wrongly converts when ``arg`` is a ``np.datetime64`` object with unit of ``ps``. (:issue:`60341`)
709+
- Bug in constructing arrays with :class:`ArrowDtype` with ``timestamp`` type incorrectly allowing ``Decimal("NaN")`` (:issue:`61773`)
709710
- Bug in setting scalar values with mismatched resolution into arrays with non-nanosecond ``datetime64``, ``timedelta64`` or :class:`DatetimeTZDtype` incorrectly truncating those scalars (:issue:`56410`)
710-
- Bug in constructing arrays with :class:`ArrowDtype` with ``timestamp`` type incorrectly allowing ``Decimal("NaN")`` (:issue:`??`)
711711
-
712712

713713
Timedelta

pandas/tests/extension/test_arrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3547,8 +3547,8 @@ def test_arrow_json_type():
35473547

35483548

35493549
def test_timestamp_dtype_disallows_decimal():
3550-
# constructing with pyarrow timestamp dtype should disallow Decimal NaN,
3551-
# just like pd.to_datetime
3550+
# GH#61773 constructing with pyarrow timestamp dtype should disallow
3551+
# Decimal NaN, just like pd.to_datetime
35523552
vals = [pd.Timestamp("2016-01-02 03:04:05"), Decimal("NaN")]
35533553

35543554
msg = "<class 'decimal.Decimal'> is not convertible to datetime"

pandas/tests/io/test_sql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ def test_dataframe_to_sql_arrow_dtypes_missing(conn, request, nulls_fixture):
10411041
pytest.importorskip("pyarrow")
10421042
if isinstance(nulls_fixture, Decimal):
10431043
pytest.skip(
1044+
# GH#61773
10441045
reason="Decimal('NaN') not supported in constructor for timestamp dtype"
10451046
)
10461047

0 commit comments

Comments
 (0)