-
-
Couldn't load subscription status.
- Fork 19.2k
Closed
Labels
API DesignBugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversions
Milestone
Description
s=pd.Series(['a','a','a'])
s.convert_objects(convert_numeric=True)
Out[78]:
0 a
1 a
2 a
dtype: object
s[0]=1.0
s
Out[80]:
0 1
1 a
2 a
dtype: object
s.convert_objects(convert_numeric=True)
Out[81]:
0 1
1 NaN
2 NaN
dtype: float64
Having a single number changes behavior. Makes convert_objects unreliable when the data type must be numeric.
Metadata
Metadata
Assignees
Labels
API DesignBugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversions