These are the changes in pandas 2.1.2. See release
for a full changelog including other versions of pandas.
{{ header }}
- Fixed regression in
DataFrame.join
where result has missing values and dtype is arrow backed string (55348
) - Fixed regression in
DataFrame.resample
which was extrapolating back toorigin
whenorigin
was outside its bounds (55064
) - Fixed regression in
DataFrame.sort_index
which was not sorting correctly when the index was a slicedMultiIndex
(55379
) - Fixed performance regression with wide DataFrames, typically involving methods where all columns were accessed individually (
55256
,55245
)
- Fixed bug in
.DataFrameGroupBy
reductions not preserving object dtype wheninfer_string
is set (55620
) - Fixed bug in
.SeriesGroupBy.value_counts
returning incorrect dtype for string columns (55627
) - Fixed bug in
Categorical.equals
if other has arrow backed string dtype (55364
) - Fixed bug in
DataFrame.__setitem__
not inferring string dtype for zero-dimensional array withinfer_string=True
(55366
) - Fixed bug in
DataFrame.idxmin
andDataFrame.idxmax
raising for arrow dtypes (55368
) - Fixed bug in
DataFrame.interpolate
raising incorrect error message (55347
) - Fixed bug in
Index.insert
raising when insertingNone
intoIndex
withdtype="string[pyarrow_numpy]"
(55365
) - Fixed bug in
Series.all
andSeries.any
not treating missing values correctly fordtype="string[pyarrow_numpy]"
(55367
) - Fixed bug in
Series.floordiv
forArrowDtype
(55561
) - Fixed bug in
Series.rank
forstring[pyarrow_numpy]
dtype (55362
) - Fixed bug in
Series.str.extractall
forArrowDtype
dtype being converted to object (53846
) - Fixed bug where PDEP-6 warning about setting an item of an incompatible dtype was being shown when creating a new conditional column (
55025
) - Silence
Period[B]
warnings introduced by53446
during normal plotting activity (55138
) - Fixed bug in
Series
constructor not inferring string dtype whenNA
is the first value andinfer_string
is set (55655
)
- Fixed non-working installation of optional dependency group
output_formatting
. Replacing underscore_
with a dash-
fixes broken dependency resolution. A correct way to use now ispip install pandas[output-formatting]
.