2.0.3 版本的新功能 (2023 年 6 月 28 日)#
这是 pandas 2.0.3 的变更。请参阅发行说明,了解包括其他 pandas 版本在内的完整变更日志。
修复的回归#
Timestamp.weekday()`
中的 bug 在'0000-02-29'
之前返回不正确的结果 (GH 53738)修复了在 datetime-like 列上进行合并时的性能回归 (GH 53231)
修复了
DataFrame.to_string()
为字符串 dtypes 创建额外空间时的回归 (GH 52690)
错误修复#
DataFrame.convert_dtype()
和Series.convert_dtype()
在尝试使用dtype_backend="nullable_numpy"
转换ArrowDtype
时的错误 (GH 53648)RangeIndex.union()
在与另一个RangeIndex
一起使用sort=True
时的错误 (GH 53490)Series.reindex()
在扩展非纳秒级的 datetime 或 timedeltaSeries
时未能正确填充NaT
的错误 (GH 53497)read_csv()
在为"c"
和"python"
引擎定义dtype
为bool[pyarrow]
时的错误 (GH 53390)Series.str.split()
和Series.str.rsplit()
在ArrowDtype
使用pyarrow.string
时,使用expand=True
时的错误 (GH 53532)索引方法(例如
DataFrame.__getitem__()
)中的错误,当启用写时复制且数组长度超过 32 位整数最大值时,获取整个DataFrame
/Series
会引发OverflowError
(GH 53616)使用
pyarrow.dictionary
类型的ArrowDtype
列构建DataFrame
并重新索引数据时的错误 (GH 53617)使用具有 timestamp
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]