1.3.4中的新特性(2021年10月17日)#
这些是Pandas1.3.4中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
修复了中的回归问题
DataFrame.convert_dtypes()错误地将字节字符串转换为字符串 (GH43183 )Fixed regression in
GroupBy.agg()where it was failing silently with mixed data types alongaxis=1andMultiIndex(GH43209)修复了中的回归问题
DataFrame.corr()加薪ValueError使用method="spearman"在32位平台上 (GH43588 )Fixed performance regression in
MultiIndex.equals()(GH43549)Fixed performance regression in
GroupBy.first()andGroupBy.last()withStringDtype(GH41596)Fixed regression in
Series.cat.reorder_categories()failing to update the categories on theSeries(GH43232)Fixed regression in
Series.cat.categories()setter failing to update the categories on theSeries(GH43334)Fixed regression in
read_csv()raisingUnicodeDecodeErrorexception whenmemory_map=True(GH43540)修复了中的回归问题
DataFrame.explode()加薪AssertionError什么时候column不是字符串的任何标量 (GH43314 )修复了中的回归问题
Series.aggregate()试图传球args和kwargs多次向用户提供func在某些情况下 (GH43357 )修复了在迭代
DataFrame.groupby.rolling如果未对输入分组进行排序,则会导致生成的DataFrames具有错误的索引 (GH43386 )修复了中的回归问题
DataFrame.groupby.rolling.cov()和DataFrame.groupby.rolling.corr()如果输入分组未排序,则计算不正确的结果 (GH43386 )
错误修复#
修复了中的错误
pandas.DataFrame.groupby.rolling()和pandas.api.indexers.FixedForwardWindowIndexer导致跨组混合出现分段故障和窗口端点 (GH43267 )修复了中的错误
GroupBy.mean()具有类似日期时间的值,包括NaT返回错误结果的值 (GH43132 )修复了中的错误
Series.aggregate()没有通过第一名args提供给用户的func在某些情况下 (GH43357 )Fixed memory leaks in
Series.rolling.quantile()andSeries.rolling.median()(GH43339)
其他#
The minimum version of Cython needed to compile pandas is now
0.29.24(GH43729)
贡献者#
共有17人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Alexey Györi +
DSM
Irv Lustig
Jeff Reback
Julien de la Bruère-T +
Matthew Zeitlin
MeeseeksMachine
Pandas Development Team
Patrick Hoefler
Richard Shadrach
Shoham Debnath
Simon Hawkins
Thomas Li
aptalca +
jbrockmendel
michal-gh +
realead