Skip to content

Commit 8ba96f2

Browse files
committed
BUG: PeriodIndex fails to handle NA, rather than putting NaT in its place (pandas-dev#46673)
1 parent 3b589b1 commit 8ba96f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/series/methods/test_astype.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def test_astype_string_to_extension_dtype_roundtrip(
446446
self, data, dtype, request, nullable_string_dtype
447447
):
448448
if dtype == "boolean" or (
449-
dtype in ("period[M]", "datetime64[ns]", "timedelta64[ns]") and NaT in data
449+
dtype in ("datetime64[ns]", "timedelta64[ns]") and NaT in data
450450
):
451451
mark = pytest.mark.xfail(
452452
reason="TODO StringArray.astype() with missing values #GH40566"

0 commit comments

Comments
 (0)