Skip to content

Commit

Permalink
DOC: Improve convert_dtypes's docstring (#58558)
Browse files Browse the repository at this point in the history
* DOC: Improve convert_dtypes's docstring

* Make summary 1 line
  • Loading branch information
Aloqeely committed May 4, 2024
1 parent 9ff2c6b commit 02708ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6622,7 +6622,7 @@ def convert_dtypes(
dtype_backend: DtypeBackend = "numpy_nullable",
) -> Self:
"""
Convert columns to the best possible dtypes using dtypes supporting ``pd.NA``.
Convert columns from numpy dtypes to the best dtypes that support ``pd.NA``.
Parameters
----------
Expand All @@ -6639,13 +6639,13 @@ def convert_dtypes(
If `convert_integer` is also True, preference will be give to integer
dtypes if the floats can be faithfully casted to integers.
dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
Back-end data type applied to the resultant :class:`DataFrame`
(still experimental). Behaviour is as follows:
Back-end data type applied to the resultant :class:`DataFrame` or
:class:`Series` (still experimental). Behaviour is as follows:
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
(default).
or :class:`Series` (default).
* ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
DataFrame.
DataFrame or Series.
.. versionadded:: 2.0
Expand Down

0 comments on commit 02708ed

Please sign in to comment.