What’s new in 2.1.1 (September 20, 2023)#
These are the changes in pandas 2.1.1. See Release notes for a full changelog including other versions of pandas.
Fixed regressions#
Fixed regression in
concat()
whenDataFrame
‘s have two different extension dtypes (GH 54848)Fixed regression in
merge()
when merging over a PyArrow string index (GH 54894)Fixed regression in
read_csv()
whenusecols
is given anddtypes
is a dict forengine="python"
(GH 54868)Fixed regression in
read_csv()
whendelim_whitespace
is True (GH 54918, GH 54931)Fixed regression in
GroupBy.get_group()
raising foraxis=1
(GH 54858)Fixed regression in
DataFrame.__setitem__()
raisingAssertionError
when setting aSeries
with a partialMultiIndex
(GH 54875)Fixed regression in
DataFrame.filter()
not respecting the order of elements forfilter
(GH 54980)Fixed regression in
DataFrame.to_sql()
not roundtripping datetime columns correctly for sqlite (GH 54877)Fixed regression in
DataFrameGroupBy.agg()
when aggregating a DataFrame with duplicate column names using a dictionary (GH 55006)Fixed regression in
MultiIndex.append()
raising when appending overlappingIntervalIndex
levels (GH 54934)Fixed regression in
Series.drop_duplicates()
for PyArrow strings (GH 54904)Fixed regression in
Series.interpolate()
raising whenfill_value
was given (GH 54920)Fixed regression in
Series.value_counts()
raising for numeric data ifbins
was specified (GH 54857)Fixed regression in comparison operations for PyArrow backed columns not propagating exceptions correctly (GH 54944)
Fixed regression when comparing a
Series
withdatetime64
dtype withNone
(GH 54870)
Bug fixes#
Fixed bug for
ArrowDtype
raisingNotImplementedError
for fixed-size list (GH 55000)Fixed bug in
DataFrame.stack()
withfuture_stack=True
and columns a non-MultiIndex
consisting of tuples (GH 54948)Fixed bug in
Series.dt.tz()
withArrowDtype
where a string was returned instead of atzinfo
object (GH 55003)Fixed bug in
Series.pct_change()
andDataFrame.pct_change()
showing unnecessaryFutureWarning
(GH 54981)
Other#
Reverted the deprecation that disallowed
Series.apply()
returning aDataFrame
when the passed-in callable returns aSeries
object (GH 52116)
Contributors#
A total of 13 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.
Ben Greiner +
Joris Van den Bossche
Kai Mühlbauer +
Luke Manley
Lumberbot (aka Jack)
Mateusz Sokół
Matthew Roeschke
Pandas Development Team
Patrick Hoefler
Rajat Subhra Mukherjee
Ralf Gommers
Richard Shadrach
Thomas Li