-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
BugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Milestone
Description
SO xref: http://stackoverflow.com/q/23658092/564538
In [45]: paste
>>> s1 = Series([1, True, 3, 5], index=['a', 'b', 'c', 'e'])
## -- End pasted text --
In [46]: s1
Out[46]:
a 1
b True
c 3
e 5
dtype: object
In [47]: s1.convert_objects(convert_numeric=True)
Out[47]:
a 1
b NaN
c 3
e 5
dtype: float64
Metadata
Metadata
Assignees
Labels
BugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations