2.0.2 (2023 年 5 月 29 日) 有什麼新內容?#
這是 pandas 2.0.2 中的更改。有關包含其他 pandas 版本的完整變更日誌,請參閱 發行說明。
修復的迴歸#
修復了
GroupBy.apply()中的效能迴歸(GH 53195)修復了
read_sql()在列名重複時刪除列的迴歸(GH 53117)修復了在 Enlarging object 時
DataFrame.loc()丟失MultiIndex名稱的迴歸(GH 53053)修復了
DataFrame.to_string()的迴歸:當 DataFrame 不適合行寬時,在資料的第一行末尾(而不是標題)列印反斜槓(GH 53054)修復了
MultiIndex.join()返回級別順序錯誤的迴歸(GH 53093)
Bug 修復#
在
arrays.ArrowExtensionArray中,當pyarrow.map_的.type錯誤地分配dict而非list,並且對pyarrow.struct丟擲NotImplementedError的錯誤(GH 53328)在對空分類資料呼叫
api.interchange.from_dataframe()時丟擲IndexError的錯誤(GH 53077)在對切片呼叫
api.interchange.from_dataframe()時返回 DataFrame 大小不正確的錯誤(GH 52824)在
api.interchange.from_dataframe()上不必要地對位掩碼(bitmasks)丟擲錯誤的錯誤(GH 49888)當使用
engine="pyarrow"和設定了parse_dates時,read_csv()丟擲OverflowError的錯誤(GH 53295)當日期包含 “AM” / “PM” 標記時,
to_datetime()將格式推斷為包含"%H"而不是"%I"的錯誤(GH 53147)當與
pandas.NA一起使用時,to_timedelta()丟擲ValueError的錯誤(GH 52909)在
DataFrame.__getitem__()中,當使用MultiIndex的部分鍵時,未保留 dtype 的錯誤(GH 51895)當
dtype_backend="pyarrow"時,DataFrame.convert_dtypes()忽略設定為 False 的convert_*關鍵字的錯誤(GH 52872)當
dtype_backend="pyarrow"時,DataFrame.convert_dtypes()丟失 tz-aware dtypes 的時區的錯誤(GH 53382)當使用 PyArrow
dictionarydtype 時,DataFrame.sort_values()丟擲錯誤的錯誤(GH 53232)在
Series.describe()中,將 pyarrow 後端的 timestamps 和 timedeltas 視為分類資料的錯誤(GH 53001)當啟用 Copy-on-Write 且向
Series.rename()傳遞標量時,未執行延遲複製的錯誤(GH 52450)使用 NumPy 陣列和
pa.large_string或pa.large_binary呼叫pd.array()時丟擲錯誤的錯誤(GH 52590)
其他#
當使用
ArrowDtype(帶有pyarrow.date32或pyarrow.date64型別)呼叫Series.dt.to_pydatetime()時,提高了錯誤訊息(GH 52812)
貢獻者#
共有 18 人為本次釋出貢獻了補丁。名字旁有“+”號的人是首次貢獻補丁。
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]