1.3.1 版本新变化 (2021 年 7 月 25 日)#
这些是 pandas 1.3.1 中的变化。有关包含其他 pandas 版本的完整更新日志,请参阅发布说明。
修复的回归问题#
无法在 PyPy 上构建 Pandas (GH 42355)
修复了当 DataFrame 具有扩展数组 dtype、重复索引和
axis=1
时,DataFrame.agg()
丢弃值的回归问题 (GH 42380)修复了
DataFrame.astype()
改变非连续数据顺序的回归问题 (GH 42396)DataFrame
在对整数数据执行需要类型转换的规约操作(例如DataFrame.mean()
)时性能回归 (GH 38592)当
orient
参数为 “records”、“dict” 或 “split” 时,DataFrame.to_dict()
和Series.to_dict()
性能回归 (GH 42352)修复了使用
list
子类进行索引时错误地引发TypeError
的回归问题 (GH 42433, GH 42461)修复了
DataFrame.isin()
和Series.isin()
对包含至少一个缺失值的可空数据引发TypeError
的回归问题 (GH 42405)具有 bool dtype 和 integer dtype 的对象在
concat()
时转换为 object 类型而不是 integer 类型的回归问题 (GH 42092)修复了
SettingWithCopyWarning
显示不正确的堆栈级别 (stacklevel) 的回归问题 (GH 42570)修复了当其中一个
by
列在索引中时,merge_asof()
引发KeyError
的回归问题 (GH 34488)修复了当
cache=True
时,to_datetime()
对产生重复值的输入返回 pd.NaT 的回归问题 (GH 42259)修复了在只有一行数据的 Series 上调用
SeriesGroupBy.value_counts()
导致IndexError
的回归问题 (GH 42618)
错误修复#
修复了当 DataFrame 具有扩展数组 dtype 和重复索引时,
DataFrame.transpose()
丢弃值的错误 (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 +