These are the changes in pandas 2.0.2. See :ref:`release` for a full changelog including other versions of pandas.
{{ header }}
- Fixed regression in :func:`read_sql` dropping duplicated columns (:issue:`53117`)
- Fixed regression in :meth:`DataFrame.loc` losing :class:`MultiIndex` name when enlarging object (:issue:`53053`)
- Fixed regression in :meth:`DataFrame.to_string` printing a backslash at the end of the first row of data, instead of headers, when the DataFrame doesn't fit the line width (:issue:`53054`)
- Fixed regression in :meth:`MultiIndex.join` returning levels in wrong order (:issue:`53093`)
- Bug in :func:`api.interchange.from_dataframe` was raising
IndexError
on empty categorical data (:issue:`53077`) - Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of incorrect sizes when called on slices (:issue:`52824`)
- Bug in :func:`api.interchange.from_dataframe` was unnecessarily raising on bitmasks (:issue:`49888`)
- Bug in :func:`to_timedelta` was raising
ValueError
withpandas.NA
(:issue:`52909`) - Bug in :meth:`DataFrame.convert_dtypes` ignores
convert_*
keywords when set to Falsedtype_backend="pyarrow"
(:issue:`52872`) - Bug in :meth:`Series.describe` treating pyarrow-backed timestamps and timedeltas as categorical data (:issue:`53001`)
- Bug in :meth:`pd.array` raising for
NumPy
array andpa.large_string
orpa.large_binary
(:issue:`52590`)
- Raised a better error message when calling :func:`Series.dt.to_pydatetime` with :class:`ArrowDtype` with
pyarrow.date32
orpyarrow.date64
type (:issue:`52812`)
.. contributors:: v2.0.1..v2.0.2|HEAD