Skip to content

Commit a95a01b

Browse files
committed
Improve
1 parent 2a667ba commit a95a01b

File tree

14 files changed

+39
-21
lines changed

14 files changed

+39
-21
lines changed

pandas/core/dtypes/cast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ def convert_dtypes(
10141014
Back-end data type applied to the resultant :class:`DataFrame`
10151015
(still experimental). Behaviour is as follows:
10161016
1017-
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
1018-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
1017+
* ``"numpy_nullable"``: returns nullable-dtype
1018+
* ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
10191019
10201020
.. versionadded:: 2.0
10211021

pandas/core/generic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6671,7 +6671,8 @@ def convert_dtypes(
66716671
:class:`Series` (still experimental). Behaviour is as follows:
66726672
66736673
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
6674-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
6674+
* ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
6675+
:class:`DataFrame` or :class:`Series`.
66756676
66766677
.. versionadded:: 2.0
66776678

pandas/core/tools/numeric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def to_numeric(
9999
is to not use nullable data types. If specified, the behavior
100100
is as follows:
101101
102-
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
103-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
102+
* ``"numpy_nullable"``: returns nullable-dtype-backed object
103+
* ``"pyarrow"``: returns with pyarrow-backed nullable object
104104
105105
.. versionadded:: 2.0
106106

pandas/io/clipboards.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ def read_clipboard(
4545
is as follows:
4646
4747
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
48-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
48+
* ``"pyarrow"``: returns pyarrow-backed nullable
49+
:class:`ArrowDtype` :class:`DataFrame`
50+
51+
4952
5053
.. versionadded:: 2.0
5154

pandas/io/excel/_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@
274274
is as follows:
275275
276276
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
277-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
277+
* ``"pyarrow"``: returns pyarrow-backed nullable
278+
:class:`ArrowDtype` :class:`DataFrame`
278279
279280
.. versionadded:: 2.0
280281
@@ -1735,7 +1736,8 @@ def parse(
17351736
is as follows:
17361737
17371738
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
1738-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
1739+
* ``"pyarrow"``: returns pyarrow-backed nullable
1740+
:class:`ArrowDtype` :class:`DataFrame`
17391741
17401742
.. versionadded:: 2.0
17411743
**kwds : dict, optional

pandas/io/feather_format.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def read_feather(
9999
is as follows:
100100
101101
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`.
102-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
102+
* ``"pyarrow"``: returns pyarrow-backed nullable
103+
:class:`ArrowDtype` :class:`DataFrame`
103104
104105
.. versionadded:: 2.0
105106

pandas/io/html.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,8 @@ def read_html(
11381138
is as follows:
11391139
11401140
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
1141-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
1141+
* ``"pyarrow"``: returns pyarrow-backed nullable
1142+
:class:`ArrowDtype` :class:`DataFrame`
11421143
11431144
.. versionadded:: 2.0
11441145

pandas/io/json/_json.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ def read_json(
659659
is as follows:
660660
661661
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
662-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
662+
* ``"pyarrow"``: returns pyarrow-backed nullable
663+
:class:`ArrowDtype` :class:`DataFrame`
663664
664665
.. versionadded:: 2.0
665666

pandas/io/orc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def read_orc(
6868
is as follows:
6969
7070
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
71-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
71+
* ``"pyarrow"``: returns pyarrow-backed nullable
72+
:class:`ArrowDtype` :class:`DataFrame`
7273
7374
.. versionadded:: 2.0
7475

pandas/io/parquet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ def read_parquet(
549549
is as follows:
550550
551551
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
552-
* ``"pyarrow"``: returns with pyarrow-backed nullable :class:`ArrowDtype`
552+
* ``"pyarrow"``: returns pyarrow-backed nullable
553+
:class:`ArrowDtype` :class:`DataFrame`
553554
554555
.. versionadded:: 2.0
555556

0 commit comments

Comments
 (0)