Skip to content

Commit 2b96bdb

Browse files
committed
GH ref
1 parent c6c5972 commit 2b96bdb

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
@@ -3551,8 +3551,8 @@ def test_arrow_json_type():
35513551

35523552

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

35583558
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)