2.0.3 中的新功能(2023年6月28日)#
以下是 pandas 2.0.3 中的变化。有关包括其他 pandas 版本在内的完整更新日志,请参阅 发布说明。
修复的回归#
Timestamp.weekday()
在'0000-02-29'
之前返回不正确结果的错误 (GH 53738)修复了在日期时间列上合并时的性能回归问题 (GH 53231)
修复了
DataFrame.to_string()
为字符串 dtype 创建额外空间的回归问题 (GH 52690)
错误修复#
DataFrame.convert_dtype()
和Series.convert_dtype()
在尝试使用dtype_backend="nullable_numpy"
转换ArrowDtype
时的错误 (GH 53648)RangeIndex.union()
在使用sort=True
与另一个RangeIndex
时的错误 (GH 53490)Series.reindex()
扩展非纳秒级日期时间或 timedeltaSeries
时无法正确填充NaT
的错误 (GH 53497)read_csv()
在为 "c" 和 "python" 引擎定义dtype
为bool[pyarrow]
时的错误 (GH 53390)Series.str.split()
和Series.str.rsplit()
在expand=True
且ArrowDtype
为pyarrow.string
类型时的错误 (GH 53532)索引方法(例如
DataFrame.__getitem__()
)的错误:当启用写时复制(Copy on Write)且数组长度超过32位整数最大值时,获取整个DataFrame
/Series
会引发OverflowError
(GH 53616)当构建一个带有
pyarrow.dictionary
类型的ArrowDtype
列并重新索引数据时,DataFrame
构造中的错误 (GH 53617)当使用带有时间戳
ArrowDtype
的Index
对DataFrame
或Series
进行索引时,会引发AttributeError
的错误 (GH 53644)
其他#
贡献者#
共有 13 人为本次发布贡献了补丁。名字旁带有“+”的人是首次贡献补丁。
Conrad Mcgee Stocks +
Dominik Berger +
Joris Van den Bossche
Luke Manley
Lumberbot (aka Jack)
Marc Garcia
Marco Edward Gorelli
Matthew Roeschke
Pandas Development Team
Thomas A Caswell
Thomas Li
Xiao Yuan
dependabot[bot]