-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Closed
Labels
CleanTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Description
follow up #28176 (review)
Right now, astype(str) converts np.nan into string.
In [3]: pd.Series(['foo', np.nan]).astype(str)
Out[3]:
0 foo
1 nan
dtype: object
After merging #28176, astype(str) will preserve np.nan.
Review test_astype_str_map in pandas/tests/series/test_dtypes.py to get rid of any skipna keyword argument.
Metadata
Metadata
Assignees
Labels
CleanTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite