Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Migration to Pandas 3.0

未关闭
#3,362 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@deruyter92 已经在做这个了。

开始于 2026年6月10日。

评估

这个 Issue 还没有评估数据。

描述

dependencies packaging

Tracking issue for migration to Pandas 3.0

Pandas released version 3.0 in Jan 2026 which introduces breaking changes for our codebase. It would be useful to address the places where it currently breaks, so we can remove the upperbound version we introduced in https://github.com/DeepLabCut/DeepLabCut/pull/3186. Even if we eventually drop pandas altogether this is probably a worthwhile effort.

Migration is prepared in separate PRs and will require pre-emptive regression testing before final removal of the upperbound.
Some examples of the required changes are listed here. For a full overview see the Pandas migration guide.

Copy on write (CoW)
This is arguably one of the most important ones as it removes the possibility of mutating parent dataframes via assignments in their subset views (e.g. chained .loc[..] assignment), for more predictable behavior. The worst-case to avoid is that data manipulations in our codebase might silently take no effect on the intended parent DataFrame.

String extension
Pandas 3.0 introduces a new default str datatype that is more efficient than object. Unfortunately this default datatype does not work well with our multi-index HDFs: by default the index/column levels become the new str extension dtype instead of object and PyTables (to_hdf) cannot serialize a MultiIndex whose levels use extension dtypes:

NotImplementedError: Saving a MultiIndex with an extension dtype is not supported.

This would require us to change all dataframes back to object before saving.

PRs

主要语言
Python
星标
5.8k
派生
1.8k
平均合并
3 天 18 小时
30 天内合并 PR
29

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DeepLabCut/DeepLabCut 的其他 Issue

查看 DeepLabCut/DeepLabCut 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。