1.3.1 版新增內容 (2021 年 7 月 25 日)#
以下是 pandas 1.3.1 版的更改。有關包含其他 pandas 版本的完整變更日誌,請參閱 發行說明。
修復的迴歸#
pandas 無法在 PyPy 上構建 (GH 42355)
修復了
DataFrame.agg()在 DataFrame 具有 Extension Array dtype、重複索引且axis=1時丟失值的迴歸問題 (GH 42380)修復了
DataFrame.astype()更改非連續資料順序的迴歸問題 (GH 42396)在需要強制轉換的歸約操作(例如,在整數資料上進行
DataFrame.mean())中DataFrame效能迴歸 (GH 38592)當
orient引數為“records”、“dict”或“split”時,DataFrame.to_dict()和Series.to_dict()的效能迴歸 (GH 42352)修復了
DataFrame.isin()和Series.isin()對包含至少一個缺失值的可空資料引發TypeError的迴歸問題 (GH 42405)在
concat()中,布林 dtype 和整數 dtype 的物件之間出現迴歸,強制轉換為 object 而不是整數 (GH 42092)Series 建構函式中不支援
dask.Array的錯誤 (GH 38645)修復了
SettingWithCopyWarning顯示錯誤堆疊層級的迴歸問題 (GH 42570)修復了
merge_asof()在by列之一位於索引中時引發KeyError的迴歸問題 (GH 34488)修復了
to_datetime()在cache=True時,對於產生重複值的輸入返回 pd.NaT 的迴歸問題 (GH 42259)修復了
SeriesGroupBy.value_counts()在對單行 Series 呼叫時導致IndexError的迴歸問題 (GH 42618)
Bug 修復#
修復了
DataFrame.transpose()在 DataFrame 具有 Extension Array dtype 和重複索引時丟失值的錯誤 (GH 42380)修復了
DataFrame.to_xml()在與index=False和偏移索引一起呼叫時引發KeyError的錯誤 (GH 42458)修復了
Styler.set_sticky()在單索引列情況下未能正確處理索引名稱的錯誤 (GH 42537)修復了
DataFrame.copy()在合併結果中的塊時失敗的錯誤 (GH 42579)
貢獻者#
共有 17 人為本次釋出貢獻了補丁。名字旁帶有“+”的人是首次貢獻補丁。
Fangchen Li
GYvan +
Matthew Roeschke
Matthew Zeitlin
MeeseeksMachine
Pandas Development Team
Patrick Hoefler
Richard Shadrach
Shoham Debnath +
Simon Hawkins
Stephan Heßelmann +
Stephen +
Thomas Li
Zheyuan +
attack68
jbrockmendel
neelmraman +