File tree Expand file tree Collapse file tree 14 files changed +140
-119
lines changed Expand file tree Collapse file tree 14 files changed +140
-119
lines changed Original file line number Diff line number Diff line change @@ -1004,11 +1004,16 @@ def convert_dtypes(
1004
1004
infer_objects : bool, defaults False
1005
1005
Whether to also infer objects to float/int if possible. Is only hit if the
1006
1006
object array contains pd.NA.
1007
- dtype_backend : str, default "numpy_nullable"
1008
- Nullable dtype implementation to use.
1007
+ dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
1008
+ Back-end data type applied to the resultant :class:`DataFrame`
1009
+ (still experimental). Behaviour is as follows:
1009
1010
1010
- * "numpy_nullable" returns numpy-backed nullable types
1011
- * "pyarrow" returns pyarrow-backed nullable types using ``ArrowDtype``
1011
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
1012
+ (default).
1013
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
1014
+ DataFrame.
1015
+
1016
+ .. versionadded:: 2.0
1012
1017
1013
1018
Returns
1014
1019
-------
Original file line number Diff line number Diff line change @@ -6737,13 +6737,14 @@ def convert_dtypes(
6737
6737
dtypes if the floats can be faithfully casted to integers.
6738
6738
6739
6739
.. versionadded:: 1.2.0
6740
- dtype_backend : {"numpy_nullable", "pyarrow"}, default "numpy_nullable"
6741
- Which dtype_backend to use, e.g. whether a DataFrame should use nullable
6742
- dtypes for all dtypes that have a nullable
6743
- implementation when "numpy_nullable" is set, pyarrow is used for all
6744
- dtypes if "pyarrow" is set.
6745
-
6746
- The dtype_backends are still experimential.
6740
+ dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
6741
+ Back-end data type applied to the resultant :class:`DataFrame`
6742
+ (still experimental). Behaviour is as follows:
6743
+
6744
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
6745
+ (default).
6746
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
6747
+ DataFrame.
6747
6748
6748
6749
.. versionadded:: 2.0
6749
6750
Original file line number Diff line number Diff line change @@ -88,13 +88,14 @@ def to_numeric(
88
88
the dtype it is to be cast to, so if none of the dtypes
89
89
checked satisfy that specification, no downcasting will be
90
90
performed on the data.
91
- dtype_backend : {"numpy_nullable", "pyarrow"}, defaults to NumPy backed DataFrames
92
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
93
- arrays, nullable dtypes are used for all dtypes that have a nullable
94
- implementation when "numpy_nullable" is set, pyarrow is used for all
95
- dtypes if "pyarrow" is set.
96
-
97
- The dtype_backends are still experimential.
91
+ dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
92
+ Back-end data type applied to the resultant :class:`DataFrame`
93
+ (still experimental). Behaviour is as follows:
94
+
95
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
96
+ (default).
97
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
98
+ DataFrame.
98
99
99
100
.. versionadded:: 2.0
100
101
Original file line number Diff line number Diff line change @@ -37,13 +37,14 @@ def read_clipboard(
37
37
A string or regex delimiter. The default of ``'\\s+'`` denotes
38
38
one or more whitespace characters.
39
39
40
- dtype_backend : {"numpy_nullable", "pyarrow"}, defaults to NumPy backed DataFrames
41
- Which dtype_backend to use, e.g., whether a DataFrame should have NumPy
42
- arrays, nullable dtypes are used for all dtypes that have a nullable
43
- implementation when ``'numpy_nullable'`` is set, pyarrow is used for all
44
- dtypes if ``'pyarrow'`` is set.
45
-
46
- The dtype_backends are still experimental.
40
+ dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
41
+ Back-end data type applied to the resultant :class:`DataFrame`
42
+ (still experimental). Behaviour is as follows:
43
+
44
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
45
+ (default).
46
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
47
+ DataFrame.
47
48
48
49
.. versionadded:: 2.0
49
50
Original file line number Diff line number Diff line change 286
286
287
287
.. versionadded:: 1.2.0
288
288
289
- dtype_backend : {{"numpy_nullable", "pyarrow"}}, defaults to NumPy backed DataFrames
290
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
291
- arrays, nullable dtypes are used for all dtypes that have a nullable
292
- implementation when "numpy_nullable" is set, pyarrow is used for all
293
- dtypes if "pyarrow" is set.
294
-
295
- The dtype_backends are still experimential.
289
+ dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
290
+ Back-end data type applied to the resultant :class:`DataFrame`
291
+ (still experimental). Behaviour is as follows:
292
+
293
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
294
+ (default).
295
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
296
+ DataFrame.
296
297
297
298
.. versionadded:: 2.0
298
299
Original file line number Diff line number Diff line change @@ -89,13 +89,14 @@ def read_feather(
89
89
90
90
.. versionadded:: 1.2.0
91
91
92
- dtype_backend : {{"numpy_nullable", "pyarrow"}}, defaults to NumPy backed DataFrames
93
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
94
- arrays, nullable dtypes are used for all dtypes that have a nullable
95
- implementation when "numpy_nullable" is set, pyarrow is used for all
96
- dtypes if "pyarrow" is set.
97
-
98
- The dtype_backends are still experimential.
92
+ dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
93
+ Back-end data type applied to the resultant :class:`DataFrame`
94
+ (still experimental). Behaviour is as follows:
95
+
96
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
97
+ (default).
98
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
99
+ DataFrame.
99
100
100
101
.. versionadded:: 2.0
101
102
Original file line number Diff line number Diff line change @@ -1121,13 +1121,14 @@ def read_html(
1121
1121
1122
1122
.. versionadded:: 1.5.0
1123
1123
1124
- dtype_backend : {"numpy_nullable", "pyarrow"}, defaults to NumPy backed DataFrames
1125
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
1126
- arrays, nullable dtypes are used for all dtypes that have a nullable
1127
- implementation when "numpy_nullable" is set, pyarrow is used for all
1128
- dtypes if "pyarrow" is set.
1129
-
1130
- The dtype_backends are still experimential.
1124
+ dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
1125
+ Back-end data type applied to the resultant :class:`DataFrame`
1126
+ (still experimental). Behaviour is as follows:
1127
+
1128
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
1129
+ (default).
1130
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
1131
+ DataFrame.
1131
1132
1132
1133
.. versionadded:: 2.0
1133
1134
Original file line number Diff line number Diff line change @@ -662,13 +662,14 @@ def read_json(
662
662
663
663
.. versionadded:: 1.2.0
664
664
665
- dtype_backend : {{"numpy_nullable", "pyarrow"}}, defaults to NumPy backed DataFrames
666
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
667
- arrays, nullable dtypes are used for all dtypes that have a nullable
668
- implementation when "numpy_nullable" is set, pyarrow is used for all
669
- dtypes if "pyarrow" is set.
670
-
671
- The dtype_backends are still experimential.
665
+ dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
666
+ Back-end data type applied to the resultant :class:`DataFrame`
667
+ (still experimental). Behaviour is as follows:
668
+
669
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
670
+ (default).
671
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
672
+ DataFrame.
672
673
673
674
.. versionadded:: 2.0
674
675
Original file line number Diff line number Diff line change @@ -63,13 +63,14 @@ def read_orc(
63
63
Output always follows the ordering of the file and not the columns list.
64
64
This mirrors the original behaviour of
65
65
:external+pyarrow:py:meth:`pyarrow.orc.ORCFile.read`.
66
- dtype_backend : {"numpy_nullable", "pyarrow"}, defaults to NumPy backed DataFrames
67
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
68
- arrays, nullable dtypes are used for all dtypes that have a nullable
69
- implementation when "numpy_nullable" is set, pyarrow is used for all
70
- dtypes if "pyarrow" is set.
71
-
72
- The dtype_backends are still experimential.
66
+ dtype_backend : {'numpy_nullable', 'pyarrow'}, default 'numpy_nullable'
67
+ Back-end data type applied to the resultant :class:`DataFrame`
68
+ (still experimental). Behaviour is as follows:
69
+
70
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
71
+ (default).
72
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
73
+ DataFrame.
73
74
74
75
.. versionadded:: 2.0
75
76
Original file line number Diff line number Diff line change @@ -533,13 +533,14 @@ def read_parquet(
533
533
534
534
.. deprecated:: 2.0
535
535
536
- dtype_backend : {{"numpy_nullable", "pyarrow"}}, defaults to NumPy backed DataFrames
537
- Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
538
- arrays, nullable dtypes are used for all dtypes that have a nullable
539
- implementation when "numpy_nullable" is set, pyarrow is used for all
540
- dtypes if "pyarrow" is set.
541
-
542
- The dtype_backends are still experimential.
536
+ dtype_backend : {{'numpy_nullable', 'pyarrow'}}, default 'numpy_nullable'
537
+ Back-end data type applied to the resultant :class:`DataFrame`
538
+ (still experimental). Behaviour is as follows:
539
+
540
+ * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
541
+ (default).
542
+ * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
543
+ DataFrame.
543
544
544
545
.. versionadded:: 2.0
545
546
You can’t perform that action at this time.
0 commit comments