1.0.1中的新特性(2020年2月5日)#

这些是Pandas1.0.1中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。

固定回归#

  • 修复了中的回归问题 DataFrame 使用切片设置值(例如 df[-4:] = 1 )按标签而不是按位置索引 (GH31469 )

  • Fixed regression when indexing a Series or DataFrame indexed by DatetimeIndex with a slice containing a datetime.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 )

  • 修复了中的回归问题 to_csv() 其中,指定一个 na_rep 可能会截断写入的值 (GH31447 )

  • 修复了中的回归问题 Categorical 使用以下工具进行施工 numpy.str_ 范畴 (GH31499 )

  • 修复了中的回归问题 DataFrame.loc()DataFrame.iloc() 当选择包含单个 datetime64timedelta64 立柱 (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 using None (GH31532)

  • 修复了objTOJSON.c中的回归修复返回类型警告 (GH31463 )

  • 修复了中的回归问题 qcut() 当传递一个可为空的整数时。 (GH31389 )

  • 修复了分配给 Series 使用可为空的整型数据类型 (GH31446 )

  • 修复了编制索引时的性能回归 DataFrameSeries 使用一个 MultiIndex 对于使用标签列表的索引 (GH31648 )

  • 修复了中的回归问题 read_csv() 用于类似文件的对象 RawIOBase 不能被识别 encoding 选项 (GH31575 )

不推荐使用#

  • Support for negative integer for pd.options.display.max_colwidth is deprecated in favor of using None (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 backed Series and DataFrame (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