1.3.1 中的新特性 (2021年7月25日)#
以下是 pandas 1.3.1 的更改。请参阅 发行说明 以获取完整的更改日志,包括其他 pandas 版本。
已修复的回归问题#
无法在 PyPy 上构建 Pandas (GH 42355)
修复了
DataFrame.agg()在 DataFrame 具有扩展数组数据类型、重复索引和axis=1时丢失值的回归 (GH 42380)修复了
DataFrame.astype()改变非连续数据顺序的回归 (GH 42396)在
DataFrame中,对整数数据执行需要类型转换的归约操作(例如DataFrame.mean())时出现性能回归 (GH 38592)当
orient参数为 “records”、“dict” 或 “split” 之一时,DataFrame.to_dict()和Series.to_dict()出现性能回归 (GH 42352)修复了
DataFrame.isin()和Series.isin()在包含至少一个缺失值的可空数据上引发TypeError的回归 (GH 42405)修复了
SettingWithCopyWarning显示不正确堆栈级别的回归 (GH 42570)修复了
merge_asof()在其中一个by列在索引中时引发KeyError的回归 (GH 34488)修复了
to_datetime()在cache=True且输入产生重复值时返回 pd.NaT 的回归 (GH 42259)修复了在单行 Series 上调用
SeriesGroupBy.value_counts()时导致IndexError的回归 (GH 42618)
Bug 修复#
修复了
DataFrame.transpose()在 DataFrame 具有扩展数组数据类型和重复索引时丢失值的 Bug (GH 42380)修复了
DataFrame.to_xml()在使用index=False和偏移索引调用时引发KeyError的 Bug (GH 42458)修复了
Styler.set_sticky()在单索引列情况下未正确处理索引名称的 Bug (GH 42537)修复了
DataFrame.copy()无法在结果中整合块的 Bug (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 +