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` and :func:`read_csv` (with ``engine="pyarrow"``)
37
+
to return pyarrow-backed dtypes when set to ``"pyarrow"`` (:issue:`48957`).
38
+
39
+
.. ipython:: python
40
+
41
+
import io
42
+
data = io.StringIO("""a,b,c,d,e,f,g,h,i
43
+
1,2.5,True,a,,,,,
44
+
3,4.5,False,b,6,7.5,True,a,
45
+
""")
46
+
with pd.option_context("io.nullable_backend", "pyarrow"):
- :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`)
43
57
- :func:`assert_frame_equal` now shows the first element where the DataFrames differ, analogously to ``pytest``'s output (:issue:`47910`)
44
58
- Added new argument ``use_nullable_dtypes`` to :func:`read_csv` and :func:`read_excel` to enable automatic conversion to nullable dtypes (:issue:`36712`)
45
-
- Added new global configuration, ``io.nullable_backend`` to allow ``use_nullable_dtypes=True`` to return pyarrow-backed dtypes when set to ``"pyarrow"`` in :func:`read_parquet` (:issue:`48957`)
46
59
- Added ``index`` parameter to :meth:`DataFrame.to_dict` (:issue:`46398`)
47
60
- Added metadata propagation for binary operators on :class:`DataFrame` (:issue:`28283`)
48
61
- :class:`.CategoricalConversionWarning`, :class:`.InvalidComparison`, :class:`.InvalidVersion`, :class:`.LossySetitemError`, and :class:`.NoBufferPresent` are now exposed in ``pandas.errors`` (:issue:`27656`)
0 commit comments