1.3.1中的新特性(2021年7月25日)#
这些是Pandas1.3.1中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
大Pandas不能建在派派西上 (GH42355 )
Fixed regression in
DataFrame.agg()dropping values when the DataFrame had an Extension Array dtype, a duplicate index, andaxis=1(GH42380)修复了中的回归问题
DataFrame.astype()更改非连续数据的顺序 (GH42396 )性能回归在
DataFrame在需要铸造的还原操作中,例如DataFrame.mean()关于整型数据 (GH38592 )性能回归在
DataFrame.to_dict()和Series.to_dict()什么时候orient参数“Record”、“dict”或“Split”之一 (GH42352 )Fixed regression in indexing with a
listsubclass incorrectly raisingTypeError(GH42433, GH42461)修复了中的回归问题
DataFrame.isin()和Series.isin()加薪TypeError具有至少包含一个缺失值的可空数据 (GH42405 )Bug in
Seriesconstructor not accepting adask.Array(GH38645)修复了以下项的回归
SettingWithCopyWarning显示不正确的堆栈级别 (GH42570 )修复了以下项的回归
merge_asof()加薪KeyError当其中一个by列在索引中 (GH34488 )Fixed regression in
to_datetime()returning pd.NaT for inputs that produce duplicated values, whencache=True(GH42259)修复了中的回归问题
SeriesGroupBy.value_counts()这导致了一个IndexError在单行系列上调用时 (GH42618 )
错误修复#
修复了中的错误
DataFrame.transpose()当DataFrame具有扩展数组dtype和重复索引时丢弃值 (GH42380 )修复了中的错误
DataFrame.to_xml()加薪KeyError使用调用时index=False和偏移量索引 (GH42458 )修复了中的错误
Styler.set_sticky()对于单个索引列大小写,未正确处理索引名 (GH42537 )修复了中的错误
DataFrame.copy()未能整合结果中的数据块 (GH42579 )
贡献者#
共有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 +