-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
RegressionFunctionality that used to work in a prior pandas versionFunctionality that used to work in a prior pandas versionStringsString extension data type and string dataString extension data type and string data
Milestone
Description
Question about pandas
Let's say we have a Series with None like the below.
pser = pd.Series(["hi", "hi ", " ", " \t", "", None], name="x")
print(pser)
0 hi
1 hi
2
3 \t
4
5 None
Name: x, dtype: objectthe last value is None, but it is casted to nan after using astype with str parameter.
print(pser.astype(str))
0 hi
1 hi
2
3 \t
4
5 nan
Name: x, dtype: objectIs it intended behavior in pandas 1.1.1. ??
Thanks :)
Metadata
Metadata
Assignees
Labels
RegressionFunctionality that used to work in a prior pandas versionFunctionality that used to work in a prior pandas versionStringsString extension data type and string dataString extension data type and string data