1.1.2中的新特性(2020年9月8日)#
这些是Pandas1.1.2中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
回归到
DatetimeIndex.intersection()错误地提高AssertionError当与列表相交时 (GH35876 )修复就地更新列中的回归问题(例如,使用
df['col'].fillna(.., inplace=True)) (GH35731 )修复回归
DataFrame.append()混合使用Tz感知和Tz朴素的DATETIME列 (GH35460 )Performance regression for
RangeIndex.format()(GH35712)回归在哪里
MultiIndex.get_loc()当传递空列表时,将返回一个跨越整个索引的切片 (GH35878 )在索引操作后修复无效缓存中的回归;当设置不更新数据时,这可能会体现出来 (GH35521 )
Regression in
DataFrame.replace()where aTypeErrorwould be raised when attempting to replace elements of typeInterval(GH35931)Fix regression in pickle roundtrip of the
closedattribute ofIntervalIndex(GH35658)修复了中的回归问题
DataFrameGroupBy.agg()其中一个ValueError: buffer source array is read-only当基础数组为只读时将引发 (GH36014 )修复了中的回归问题
Series.groupby.rolling()级别的数量MultiIndex输入被压缩为1 (GH36018 )Fixed regression in
DataFrameGroupByon an emptyDataFrame(GH36197)
错误修复#
窃听
DataFrame.eval()使用objectDTYPE列二进制操作 (GH35794 )窃听
DataFrame.apply()使用result_type="reduce"返回的索引不正确 (GH35683 )窃听
Series.astype()和DataFrame.astype()不尊重errors参数在设置为时"ignore"对于扩展数据类型 (GH35471 )Bug in
DateTimeIndex.format()andPeriodIndex.format()withname=Truesetting the first item to"None"where it should be""(GH35712)Bug in
Float64Index.__contains__()incorrectly raisingTypeErrorinstead of returningFalse(GH35788)窃听
Series.dt.isocalendar()和DatetimeIndex.isocalendar()返回的某些日期的年份不正确 (GH36032 )窃听
DataFrame.corr()导致后续索引查找不正确 (GH35882 )窃听
import_optional_dependency()包名称与导入名称不同时返回错误的包名称 (GH35948 )
其他#
factorize()now supportsna_sentinel=Noneto include NaN in the uniques of the values and removedropnakeyword which was unintentionally exposed to public facing API in 1.1 version fromfactorize()(GH35667)DataFrame.plot()andSeries.plot()raiseUserWarningabout usage ofFixedFormatterandFixedLocator(GH35684 and GH35945)
贡献者#
共有16人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Ali McMaster
Asish Mahapatra
Daniel Saxton
Fangchen Li
Harsh Sharma +
Irv Lustig
Jeet Parekh +
Joris Van den Bossche
Kaiqi Dong
Matthew Roeschke
MeeseeksMachine
Pandas Development Team
Simon Hawkins
Terji Petersen
jbrockmendel
patrick