@@ -64,6 +64,7 @@ def to_numeric(
64
64
----------
65
65
arg : scalar, list, tuple, 1-d array, or Series
66
66
Argument to be converted.
67
+
67
68
errors : {'raise', 'coerce'}, default 'raise'
68
69
- If 'raise', then invalid parsing will raise an exception.
69
70
- If 'coerce', then invalid parsing will be set as NaN.
@@ -88,14 +89,15 @@ def to_numeric(
88
89
the dtype it is to be cast to, so if none of the dtypes
89
90
checked satisfy that specification, no downcasting will be
90
91
performed on the data.
91
- dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
92
+
93
+ dtype_backend : {'numpy_nullable', 'pyarrow'}
92
94
Back-end data type applied to the resultant :class:`DataFrame`
93
- (still experimental). Behaviour is as follows:
95
+ (still experimental). If not specified, the default behavior
96
+ is to not use nullable data types. If specified, the behavior
97
+ is as follows:
94
98
95
- * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
96
- (default).
97
- * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
98
- DataFrame.
99
+ * ``"numpy_nullable"``: returns with nullable-dtype-backed
100
+ * ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
99
101
100
102
.. versionadded:: 2.0
101
103
0 commit comments