Migration to Pandas 3.0
@deruyter92 已经在做这个了。
开始于 2026年6月10日。
评估
这个 Issue 还没有评估数据。
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeepLabCut/DeepLabCut 的其他 Issue
-
napari-dlc
DeepLabCut/DeepLabCut#3524 · 1 条评论 · 已指派 1 人 ·
-
config enhancement metrics pytorch
DeepLabCut/DeepLabCut#3521 · 已指派 2 人 ·
-
bug metrics pytorch
DeepLabCut/DeepLabCut#3518 · 1 条评论 · 已指派 1 人 ·
-
CI enhancement
DeepLabCut/DeepLabCut#3517 · 1 条评论 · 已指派 2 人 ·
-
DeepLabCut/DeepLabCut#3493 · 已指派 1 人 ·
查看 DeepLabCut/DeepLabCut 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
canonical/paas-charm#368 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
tech debt
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·