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()whenusecolsis given anddtypesis a dict forengine="python"(GH 54868)Fixed regression in
read_csv()whendelim_whitespaceis True (GH 54918, GH 54931)Fixed regression in
GroupBy.get_group()raising foraxis=1(GH 54858)Fixed regression in
DataFrame.__setitem__()raisingAssertionErrorwhen setting aSerieswith 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 overlappingIntervalIndexlevels (GH 54934)Fixed regression in
Series.drop_duplicates()for PyArrow strings (GH 54904)Fixed regression in
Series.interpolate()raising whenfill_valuewas given (GH 54920)Fixed regression in
Series.value_counts()raising for numeric data ifbinswas specified (GH 54857)Fixed regression in comparison operations for PyArrow backed columns not propagating exceptions correctly (GH 54944)
Fixed regression when comparing a
Serieswithdatetime64dtype withNone(GH 54870)
Bug fixes#
Fixed bug for
ArrowDtyperaisingNotImplementedErrorfor fixed-size list (GH 55000)Fixed bug in
DataFrame.stack()withfuture_stack=Trueand columns a non-MultiIndexconsisting of tuples (GH 54948)Fixed bug in
Series.dt.tz()withArrowDtypewhere a string was returned instead of atzinfoobject (GH 55003)Fixed bug in
Series.pct_change()andDataFrame.pct_change()showing unnecessaryFutureWarning(GH 54981)
Other#
Reverted the deprecation that disallowed
Series.apply()returning aDataFramewhen the passed-in callable returns aSeriesobject (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