These are the changes in pandas 1.4.3. See :ref:`release` for a full changelog including other versions of pandas.
{{ header }}
- Fixed regression in :meth:`DataFrame.replace` when the replacement value was explicitly
None
when passed in a dictionary toto_replace
also casting other columns to object dtype even when there were no values to replace (:issue:`46634`) - Fixed regression when setting values with :meth:`DataFrame.loc` updating :class:`RangeIndex` when index was set as new column and column was updated afterwards (:issue:`47128`)
- Fixed regression in :meth:`DataFrame.nsmallest` led to wrong results when
np.nan
in the sorting column (:issue:`46589`) - Fixed regression in :func:`read_fwf` raising
ValueError
whenwidths
was specified withusecols
(:issue:`46580`) - Fixed regression in :func:`concat` not sorting columns for mixed column names (:issue:`47127`)
- Fixed regression in :meth:`.Groupby.transform` and :meth:`.Groupby.agg` failing with
engine="numba"
when the index was a :class:`MultiIndex` (:issue:`46867`) - Fixed regression in
NaN
comparison for :class:`Index` operations where the same object was compared (:issue:`47105`) - Fixed regression is :meth:`.Styler.to_latex` and :meth:`.Styler.to_html` where
buf
failed in combination withencoding
(:issue:`47053`) - Fixed regression in :func:`read_csv` with
index_col=False
identifying first row as index names whenheader=None
(:issue:`46955`) - Fixed regression in :meth:`.DataFrameGroupBy.agg` when used with list-likes or dict-likes and
axis=1
that would give incorrect results; now raisesNotImplementedError
(:issue:`46995`) - Fixed regression in :meth:`DataFrame.resample` and :meth:`DataFrame.rolling` when used with list-likes or dict-likes and
axis=1
that would raise an unintuitive error message; now raisesNotImplementedError
(:issue:`46904`) - Fixed regression in :func:`read_excel` returning ints as floats on certain input sheets (:issue:`46988`)
- Fixed regression in :meth:`DataFrame.shift` when
axis
iscolumns
andfill_value
is absent,freq
is ignored (:issue:`47039`)
- Bug in :meth:`pd.eval`, :meth:`DataFrame.eval` and :meth:`DataFrame.query` where passing empty
local_dict
orglobal_dict
was treated as passingNone
(:issue:`47084`) - Most I/O methods do no longer suppress
OSError
andValueError
when closing file handles (:issue:`47136`)
- The minimum version of Cython needed to compile pandas is now
0.29.30
(:issue:`41935`)
.. contributors:: v1.4.2..v1.4.3|HEAD