1.0.1中的新特性(2020年2月5日)#
这些是Pandas1.0.1中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
修复了中的回归问题
DataFrame
使用切片设置值(例如df[-4:] = 1
)按标签而不是按位置索引 (GH31469 )Fixed regression when indexing a
Series
orDataFrame
indexed byDatetimeIndex
with a slice containing adatetime.date
(GH31501)修复了中的回归问题
DataFrame.__setitem__
举起一个AttributeError
使用一个MultiIndex
和非单调索引器 (GH31449 )修复了中的回归问题
Series
将数值相乘时的乘法Series
具有>10000个具有类似时间增量的标量的元素 (GH31457 )修复了中的回归问题
.groupby().agg()
举起一个AssertionError
对于一些减价,如min
关于对象数据类型列 (GH31522 )修复了中的回归问题
.groupby()
使用胞元化归约函数的分类数据类型聚合(例如first
) (GH31450 )修复了中的回归问题
GroupBy.apply()
如果使用返回非Pandas非标量对象(例如,列表或数值数组)的函数进行调用 (GH31441 )修复了中的回归问题
DataFrame.groupby()
因此,取句点为dtype的列的最小值或最大值将引发TypeError
。 (GH31471 )修复了中的回归问题
DataFrame.groupby()
具有按多索引级别进行分组的空DataFrame (GH31670 )。修复了中的回归问题
DataFrame.apply()
具有对象数据类型和非缩减函数 (GH31505 )修复了中的回归问题
to_datetime()
在分析非纳秒分辨率日期时间时 (GH31491 )修复了中的回归问题
Categorical
使用以下工具进行施工numpy.str_
范畴 (GH31499 )修复了中的回归问题
DataFrame.loc()
和DataFrame.iloc()
当选择包含单个datetime64
或timedelta64
立柱 (GH31649 )Fixed regression where setting
pd.options.display.max_colwidth
was not accepting negative integer. In addition, this behavior has been deprecated in favor of usingNone
(GH31532)修复了objTOJSON.c中的回归修复返回类型警告 (GH31463 )
修复了编制索引时的性能回归
DataFrame
或Series
使用一个MultiIndex
对于使用标签列表的索引 (GH31648 )修复了中的回归问题
read_csv()
用于类似文件的对象RawIOBase
不能被识别encoding
选项 (GH31575 )
不推荐使用#
Support for negative integer for
pd.options.display.max_colwidth
is deprecated in favor of usingNone
(GH31532)
错误修复#
Datetimelike
修复了中的错误
to_datetime()
在何时引发cache=True
并且存在出界的值 (GH31491 )
Numeric
Bug in dtypes being lost in
DataFrame.__invert__
(~
operator) with mixed dtypes (GH31183) and for extension-array backedSeries
andDataFrame
(GH23087)
Plotting
绘制TZ感知的时间序列不再为UserWarning提供 (GH31205 )
Interval
窃听
Series.shift()
使用interval
Dtype引发TypeError
当移位整数或日期时间的间隔数组时 (GH34195 )
贡献者#
共有15人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Daniel Saxton
Guillaume Lemaitre
Jeff Reback
Joris Van den Bossche
Kaiqi Dong
Marco Gorelli
MeeseeksMachine
Pandas Development Team
Sebastián Vanrell +
Tom Augspurger
William Ayd
alimcmaster1
jbrockmendel
paihu +
proost