Skip to content

Commit 6c4903e

Browse files
authored
DOC: Change to_numeric's dtype_backend default doc (#59021)
* DOC: Change `to_numic`'s `dtype_backend` default doc * improve * improve * improve
1 parent 73ea3c1 commit 6c4903e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pandas/core/tools/numeric.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def to_numeric(
6464
----------
6565
arg : scalar, list, tuple, 1-d array, or Series
6666
Argument to be converted.
67+
6768
errors : {'raise', 'coerce'}, default 'raise'
6869
- If 'raise', then invalid parsing will raise an exception.
6970
- If 'coerce', then invalid parsing will be set as NaN.
@@ -88,14 +89,15 @@ def to_numeric(
8889
the dtype it is to be cast to, so if none of the dtypes
8990
checked satisfy that specification, no downcasting will be
9091
performed on the data.
91-
dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
92+
93+
dtype_backend : {'numpy_nullable', 'pyarrow'}
9294
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:
9498
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`
99101
100102
.. versionadded:: 2.0
101103

0 commit comments

Comments
 (0)