2.2.1 版(2024 年 2 月 22 日)更新内容#

以下是 pandas 2.2.1 中的更改。有关包括其他 pandas 版本在内的完整更新日志,请参阅发布说明

改进#

  • 添加了 pyarrow pip 额外依赖项,因此用户可以使用 pip install pandas[pyarrow] 来安装 pandas 和 pyarrow (GH 54466)

修复的回归#

Bug 修复#

其他#

注意

当未安装 PyArrow 而导入 pandas 时引发的 DeprecationWarning 已被移除。做出此决定是因为该警告对许多用户来说过于嘈杂,并且收集了大量关于将 PyArrow 作为必需依赖项的决定的反馈。Pandas 目前正在考虑是否应在 3.0 版本中将 PyArrow 添加为硬依赖项的决定。感兴趣的用户可以在此处关注讨论。

  • DataFrameGroupBy.first(), DataFrameGroupBy.last(), SeriesGroupBy.first()SeriesGroupBy.last() 添加了参数 skipna;以前通过 DataFrameGroupBy.nth() 可以实现 skipna=False,但在 pandas 2.0.0 中其行为已更改 (GH 57019)

  • Resampler.first()Resampler.last() 添加了参数 skipna (GH 57019)

贡献者#

共有 14 人为本次发布贡献了补丁。名字旁边带有“+”的人是首次贡献补丁。

  • Albert Villanova del Moral

  • Luke Manley

  • Lumberbot (又名 Jack)

  • Marco Edward Gorelli

  • Matthew Roeschke

  • Natalia Mokeeva

  • Pandas 开发团队

  • Patrick Hoefler

  • Richard Shadrach

  • Robert Schmidtke +

  • Samuel Chai +

  • Thomas Li

  • William Ayd

  • dependabot[bot]