What’s new in 2.0.2 (May 29, 2023)#
These are the changes in pandas 2.0.2. See Release notes for a full changelog including other versions of pandas.
Fixed regressions#
Fixed performance regression in
GroupBy.apply()(GH 53195)Fixed regression in
merge()on Windows when dtype isnp.intc(GH 52451)Fixed regression in
read_sql()dropping columns with duplicated column names (GH 53117)Fixed regression in
DataFrame.loc()losingMultiIndexname when enlarging object (GH 53053)Fixed regression in
DataFrame.to_string()printing a backslash at the end of the first row of data, instead of headers, when the DataFrame doesn’t fit the line width (GH 53054)Fixed regression in
MultiIndex.join()returning levels in wrong order (GH 53093)
Bug fixes#
Bug in
arrays.ArrowExtensionArrayincorrectly assigningdictinstead oflistfor.typewithpyarrow.map_and raising aNotImplementedErrorwithpyarrow.struct(GH 53328)Bug in
api.interchange.from_dataframe()was raisingIndexErroron empty categorical data (GH 53077)Bug in
api.interchange.from_dataframe()was returningDataFrame’s of incorrect sizes when called on slices (GH 52824)Bug in
api.interchange.from_dataframe()was unnecessarily raising on bitmasks (GH 49888)Bug in
merge()when merging on datetime columns on different resolutions (GH 53200)Bug in
read_csv()raisingOverflowErrorforengine="pyarrow"andparse_datesset (GH 53295)Bug in
to_datetime()was inferring format to contain"%H"instead of"%I"if date contained “AM” / “PM” tokens (GH 53147)Bug in
to_timedelta()was raisingValueErrorwithpandas.NA(GH 52909)Bug in
DataFrame.__getitem__()not preserving dtypes forMultiIndexpartial keys (GH 51895)Bug in
DataFrame.convert_dtypes()ignoresconvert_*keywords when set to Falsedtype_backend="pyarrow"(GH 52872)Bug in
DataFrame.convert_dtypes()losing timezone for tz-aware dtypes anddtype_backend="pyarrow"(GH 53382)Bug in
DataFrame.sort_values()raising for PyArrowdictionarydtype (GH 53232)Bug in
Series.describe()treating pyarrow-backed timestamps and timedeltas as categorical data (GH 53001)Bug in
Series.rename()not making a lazy copy when Copy-on-Write is enabled when a scalar is passed to it (GH 52450)Bug in
pd.array()raising forNumPyarray andpa.large_stringorpa.large_binary(GH 52590)
Other#
Raised a better error message when calling
Series.dt.to_pydatetime()withArrowDtypewithpyarrow.date32orpyarrow.date64type (GH 52812)
Contributors#
A total of 18 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.
Gianluca Ficarelli +
Guillaume Lemaitre
Joris Van den Bossche
Julian Badillo +
Luke Manley
Lumberbot (aka Jack) +
Marc Garcia
Marco Edward Gorelli
MarcoGorelli
Matt Richards
Matthew Roeschke
MeeseeksMachine
Pandas Development Team
Patrick Hoefler
Simon Høxbro Hansen +
Thomas Li
Yao Xiao +
dependabot[bot]