1.1.3中的新特性(2020年10月5日)#
这些是Pandas1.1.3中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
增强#
添加了对新Python版本的支持#
Pandas 1.1.3现在支持Python3.9 (GH36296 )。
发展变化#
Cython的最低版本现在是最新的错误修复版本(0.29.21) (GH36296 )。
固定回归#
修复了中的回归问题
DataFrame.agg()
,DataFrame.apply()
,Series.agg()
,以及Series.apply()
在未应用重新标记时向用户公开内部后缀的位置 (GH36189 )Fixed regression in
IntegerArray
unary plus and minus operations raising aTypeError
(GH36063)Fixed regression when adding a
timedelta_range()
to aTimestamp
raised aValueError
(GH35897)修复了中的回归问题
Series.__getitem__()
当输入为元组时错误引发 (GH35534 )修复了中的回归问题
Series.__getitem__()
当输入为冻结集时错误引发 (GH35747 )修正了模数形式的回归
Index
,Series
和DataFrame
使用numexpr
使用C而不是Python语义 (GH36047 , GH36526 )修复了中的回归问题
read_excel()
使用engine="odf"
引起UnboundLocalError
在单元格具有嵌套子节点的某些情况下 (GH36122 , GH35802 )修复了中的回归问题
DataFrame.replace()
在Replace方法中使用浮点数时,Replace不一致 (GH35376 )Fixed regression in
Series.loc()
on aSeries
with aMultiIndex
containingTimestamp
raisingInvalidIndexError
(GH35858)修复了中的回归问题
DataFrame
和Series
数字数组和字符串之间的比较 (GH35700 , GH36377 )修复了中的回归问题
DataFrame.apply()
使用raw=True
和用户函数返回字符串 (GH35940 )Fixed regression in
read_table()
raisedValueError
whendelim_whitespace
was set toTrue
(GH35958)修复了中的回归问题
Series.dt.normalize()
当归一化前纪元日期时,结果有一天发生了变化 (GH36294 )
错误修复#
Bug in
read_spss()
where passing apathlib.Path
aspath
would raise aTypeError
(GH33666)窃听
Series.str.startswith()
和Series.str.endswith()
使用category
数据类型未传播na
参数 (GH36241 )窃听
DataFrame.sort_values()
举起一个AttributeError
在将列强制转换为分类数据类型的键上进行排序时 (GH36383 )窃听
DataFrame.stack()
提高一名ValueError
当堆叠时MultiIndex
当标高具有重复名称时基于位置的列 (GH36353 )窃听
Series.astype()
投射时显示的精度过高np.float32
以字符串形式输入数据类型 (GH36451 )窃听
Series.isin()
和DataFrame.isin()
在使用时NaN
行长度大于1,000,000 (GH22205 )Bug in
cut()
raising aValueError
when passed aSeries
of labels withordered=False
(GH36603)
其他#
Reverted enhancement added in pandas-1.1.0 where
timedelta_range()
infers a frequency when passedstart
,stop
, andperiods
(GH32377)
贡献者#
共有16人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Asish Mahapatra
Dan Moore +
Daniel Saxton
Fangchen Li
Hans
Irv Lustig
Joris Van den Bossche
Kaiqi Dong
MeeseeksMachine
Number42 +
Pandas Development Team
Richard Shadrach
Simon Hawkins
jbrockmendel
nrebena
patrick