What’s new in 1.4.1 (February 12, 2022)#
These are the changes in pandas 1.4.1. See Release notes for a full changelog including other versions of pandas.
Fixed regressions#
- Regression in - Series.mask()with- inplace=Trueand- PeriodDtypeand an incompatible- othercoercing to a common dtype instead of raising (GH45546)
- Regression in - assert_frame_equal()not respecting- check_flags=False(GH45554)
- Regression in - DataFrame.loc()raising- ValueErrorwhen indexing (getting values) on a- MultiIndexwith one level (GH45779)
- Regression in - Series.fillna()with- downcast=Falseincorrectly downcasting- objectdtype (GH45603)
- Regression in - api.types.is_bool_dtype()raising an- AttributeErrorwhen evaluating a categorical- Series(GH45615)
- Regression in - DataFrame.iat()setting values leading to not propagating correctly in subsequent lookups (GH45684)
- Regression when setting values with - DataFrame.loc()losing- Indexname if- DataFramewas empty before (GH45621)
- Regression in - join()with overlapping- IntervalIndexraising an- InvalidIndexError(GH45661)
- Regression when setting values with - Series.loc()raising with all- Falseindexer and- Serieson the right hand side (GH45778)
- Regression in - read_sql()with a DBAPI2 connection that is not an instance of- sqlite3.Connectionincorrectly requiring SQLAlchemy be installed (GH45660)
- Regression in - DateOffsetwhen constructing with an integer argument with no keywords (e.g.- pd.DateOffset(n)) would behave like- datetime.timedelta(days=0)(GH45643, GH45890)
Bug fixes#
- Fixed segfault in - DataFrame.to_json()when dumping tz-aware datetimes in Python 3.10 (GH42130)
- Stopped emitting unnecessary - FutureWarningin- DataFrame.sort_values()with sparse columns (GH45618)
- Fixed window aggregations in - DataFrame.rolling()and- Series.rolling()to skip over unused elements (GH45647)
- Fixed builtin highlighters in - Stylerto be responsive to- NAwith nullable dtypes (GH45804)
- Bug in - apply()with- axis=1raising an erroneous- ValueError(GH45912)
Other#
- Reverted performance speedup of - DataFrame.corr()for- method=pearsonto fix precision regression (GH45640, GH42761)
Contributors#
A total of 19 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.
- Adam Bowden + 
- JHM Darbyshire 
- Johannes Mueller 
- John Zangwill 
- Jonas Haag 
- Matthew Roeschke 
- MeeseeksMachine 
- Pandas Development Team 
- Patrick Hoefler 
- Robbie Palmer + 
- Simon Hawkins 
- Thomas Li 
- Tyler Reddy 
- eshirvana + 
- gesoos + 
- hasan-yaman 
- jbrockmendel 
- partev 
- rtpsw +