2.1.4 版本新增內容(2023 年 12 月 8 日)#
這是 pandas 2.1.4 中的更改。有關包含 pandas 其他版本的完整變更日誌,請參閱 發行說明。
修復的迴歸#
Bug 修復#
修復了
Series建構函式中,當index是Series列表時,引發 DeprecationWarning 的錯誤(GH 55228)修復了
Series中,嘗試將日期類字串輸入轉換為pyarrow.timestamp的ArrowDtype時出現的錯誤(GH 56266)修復了
ts_input="now"或ts_input="today"構建Timestamp時,與Timestamp.now()或Timestamp.today()相比,單元不一致的錯誤(GH 55879)修復了
Index.__getitem__()在 Arrow dtypes 和負步長時返回錯誤結果的錯誤(GH 55832)修復了
read_csv()在設定了infer_string選項時,不尊重 object dtype 的錯誤(GH 56047)修復了
to_numeric()將string[pyarrow_numpy]dtype 轉換為擴充套件 dtype 的錯誤(GH 56179)修復了
DataFrameGroupBy.min()和DataFrameGroupBy.max()在空物件時未保留擴充套件 dtype 的錯誤(GH 55619)修復了
DataFrame.__setitem__()在設定了infer_string選項時,將 object-dtype 的Index轉換為 PyArrow 後備字串的錯誤(GH 55638)修復了
DataFrame.to_hdf()在列具有StringDtype時引發錯誤的錯誤(GH 55088)修復了
Index.insert()在設定了infer_string選項時,將 object-dtype 轉換為 PyArrow 後備字串的錯誤(GH 55638)修復了
Series.__ne__()在dtype="string[pyarrow_numpy]"下,將NA與字串值進行比較時,結果為 False 的錯誤(GH 56122)修復了
Series.mode()在設定了infer_string時未保留 object dtype 的錯誤(GH 56183)修復了
Series.reset_index()在設定了infer_string時未保留 object dtype 的錯誤(GH 56160)修復了
Series.str.split()和Series.str.rsplit()在pat=None且為pyarrow.string的ArrowDtype時出現的錯誤(GH 56271)修復了
Series.str.translate()在設定了 string 選項時丟失 object dtype 的錯誤(GH 56152)
貢獻者#
總共有 12 人為本次釋出貢獻了補丁。名字旁邊有“+”號的人是首次貢獻補丁。
Daniel Isaac
Joris Van den Bossche
Luke Manley
Lumberbot (aka Jack)
Marco Edward Gorelli
Matthew Roeschke
Pandas Development Team
Patrick Hoefler
Thomas Li
William Ayd
Yao Xiao
pre-commit-ci[bot]