You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new global configuration, ``io.nullable_backend`` can now be used in conjunction with the parameter ``use_nullable_dtypes=True`` in :func:`read_parquet`, :func:`read_orc` and :func:`read_csv` (with ``engine="pyarrow"``)
37
-
to return pyarrow-backed dtypes when set to ``"pyarrow"`` (:issue:`48957`).
36
+
The ``use_nullable_dtypes`` keyword argument has been expanded to the following functions to enable automatic conversion to nullable dtypes (:issue:`36712`)
37
+
38
+
* :func:`read_csv`
39
+
* :func:`read_excel`
40
+
41
+
Additionally a new global configuration, ``io.nullable_backend`` can now be used in conjunction with the parameter ``use_nullable_dtypes=True`` in the following functions
42
+
to select the nullable dtypes implementation.
43
+
44
+
* :func:`read_csv` (with ``engine="pyarrow"``)
45
+
* :func:`read_excel`
46
+
* :func:`read_parquet`
47
+
* :func:`read_orc`
48
+
49
+
By default, ``io.nullable_backend`` is set to ``"pandas"`` to return existing, numpy-backed nullable dtypes, but it can also
50
+
be set to ``"pyarrow"`` to return pyarrow-backed, nullable :class:`ArrowDtype` (:issue:`48957`).
38
51
39
52
.. ipython:: python
40
53
@@ -43,10 +56,15 @@ to return pyarrow-backed dtypes when set to ``"pyarrow"`` (:issue:`48957`).
43
56
1,2.5,True,a,,,,,
44
57
3,4.5,False,b,6,7.5,True,a,
45
58
""")
46
-
with pd.option_context("io.nullable_backend", "pyarrow"):
- :meth:`.DataFrameGroupBy.quantile` and :meth:`.SeriesGroupBy.quantile` now preserve nullable dtypes instead of casting to numpy dtypes (:issue:`37493`)
56
74
- :meth:`Series.add_suffix`, :meth:`DataFrame.add_suffix`, :meth:`Series.add_prefix` and :meth:`DataFrame.add_prefix` support an ``axis`` argument. If ``axis`` is set, the default behaviour of which axis to consider can be overwritten (:issue:`47819`)
57
75
- :func:`assert_frame_equal` now shows the first element where the DataFrames differ, analogously to ``pytest``'s output (:issue:`47910`)
58
-
- Added new argument ``use_nullable_dtypes`` to :func:`read_csv` and :func:`read_excel` to enable automatic conversion to nullable dtypes (:issue:`36712`)
59
76
- Added ``index`` parameter to :meth:`DataFrame.to_dict` (:issue:`46398`)
60
77
- Added support for extension array dtypes in :func:`merge` (:issue:`44240`)
61
78
- Added metadata propagation for binary operators on :class:`DataFrame` (:issue:`28283`)
0 commit comments