1.3.3中的新特性(2021年9月12日)#
这些是Pandas1.3.3中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
Fixed regression in
DataFrame
constructor failing to broadcast for definedIndex
and len one list ofTimestamp
(GH42810)修复了中的回归问题
GroupBy.agg()
在某些情况下错误地提高 (GH42390 )Fixed regression in
GroupBy.apply()
wherenan
values were dropped even withdropna=False
(GH43205)Fixed regression in
GroupBy.quantile()
which was failing withpandas.NA
(GH42849)修复了中的回归问题
merge()
哪里on
带有的柱ExtensionDtype
或bool
数据类型被强制转换为object
在……里面right
和outer
合并 (GH40073 )Fixed regression in
RangeIndex.where()
andRangeIndex.putmask()
raisingAssertionError
when result did not represent aRangeIndex
(GH43240)修复了中的回归问题
read_parquet()
其中fastparquet
引擎无法在FastFloet 0.7.0下正常工作 (GH43075 )修复了中的回归问题
DataFrame.loc.__setitem__()
加薪ValueError
将数组设置为单元格值时 (GH43422 )修复了中的回归问题
is_list_like()
其中,对象具有__iter__
设置为None
将被标识为可迭代的 (GH43373 )修复了中的回归问题
DataFrame.__getitem__()
切片的提升误差DatetimeIndex
当索引非单调时 (GH43223 )修复了中的回归问题
Resampler.aggregate()
在列选择之后使用时,将引发func
是聚合函数的列表 (GH42905 )修复了中的回归问题
DataFrame.corr()
对于具有重复值的列,Kendall关联将产生不正确的结果 (GH43401 )修复了中的回归问题
DataFrame.groupby()
删除了对象类型的列的WHERE聚合将导致这些列的结果 (GH42395 , GH43108 )修复了中的回归问题
Series.fillna()
加薪TypeError
灌装时float
Series
具有类似列表的填充值的dtype不能可靠地强制转换(如float32
充满了float64
) (GH43424 )修复了中的回归问题
read_csv()
加薪AttributeError
当文件句柄为tempfile.SpooledTemporaryFile
对象 (GH43439 )Fixed performance regression in
core.window.ewm.ExponentialMovingWindow.mean()
(GH42333)
性能改进#
错误修复#
Fixed bug in
DataFrameGroupBy.agg()
andDataFrameGroupBy.transform()
withengine="numba"
whereindex
data was not being correctly passed intofunc
(GH43133)
贡献者#
共有18人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Ali McMaster
Irv Lustig
Matthew Roeschke
Matthew Zeitlin
MeeseeksMachine
Pandas Development Team
Patrick Hoefler
Prerana Chakraborty +
Richard Shadrach
Shoham Debnath
Simon Hawkins
Thomas Li
Torsten Wörtwein
Zach Rait +
aiudirog +
attack68
jbrockmendel
suoniq +