Skip to content

Commit ed3f8a6

Browse files
committed
Use "str" instead of pd.StringDtype(na_value=np.nan)
1 parent a9096a0 commit ed3f8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def test_series_roundtrip_object(self, orient, dtype, object_series):
708708
expected.name = None
709709

710710
if using_string_dtype():
711-
expected = expected.astype(pd.StringDtype(na_value=np.nan))
711+
expected = expected.astype("str")
712712

713713
tm.assert_series_equal(result, expected)
714714

0 commit comments

Comments
 (0)