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 a TypeError would be raised when attempting to replace elements of type Interval (GH35931)

  • Fix regression in pickle roundtrip of the closed attribute of IntervalIndex (GH35658)

  • 修复了中的回归问题 DataFrameGroupBy.agg() 其中一个 ValueError: buffer source array is read-only 当基础数组为只读时将引发 (GH36014 )

  • 修复了中的回归问题 Series.groupby.rolling() 级别的数量 MultiIndex 输入被压缩为1 (GH36018 )

  • Fixed regression in DataFrameGroupBy on an empty DataFrame (GH36197)

错误修复#

  • 窃听 DataFrame.eval() 使用 object DTYPE列二进制操作 (GH35794 )

  • 窃听 Series 构造函数引发 TypeError 构造稀疏DateTime64 dtype时 (GH35762 )

  • 窃听 DataFrame.apply() 使用 result_type="reduce" 返回的索引不正确 (GH35683 )

  • 窃听 Series.astype()DataFrame.astype() 不尊重 errors 参数在设置为时 "ignore" 对于扩展数据类型 (GH35471 )

  • Bug in DateTimeIndex.format() and PeriodIndex.format() with name=True setting the first item to "None" where it should be "" (GH35712)

  • Bug in Float64Index.__contains__() incorrectly raising TypeError instead of returning False (GH35788)

  • 窃听 Series 构造函数错误地引发了 TypeError 当传递一个有序集时 (GH36044 )

  • 窃听 Series.dt.isocalendar()DatetimeIndex.isocalendar() 返回的某些日期的年份不正确 (GH36032 )

  • 窃听 DataFrame 索引返回不正确的 Series 在系列已更改且缓存未失效的某些情况下 (GH33675 )

  • 窃听 DataFrame.corr() 导致后续索引查找不正确 (GH35882 )

  • 窃听 import_optional_dependency() 包名称与导入名称不同时返回错误的包名称 (GH35948 )

  • 设置为空时出现错误 DataFrame 列设置为 Series 在框架中保留索引名称 (GH31368 )

其他#

贡献者#

共有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