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

Simplify or remove `assert_*_equal` wrappers around `pandas.testing` functions

未关闭 适合新手
#2,263 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@dgowdaan-cmyk 已经在做这个了。

开始于 2026年7月8日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
testing

调研方向

assert_frame_equal、assert_series_equal 和 assert_index_equal 的包装函数位于 conftest.py 中,它们会检查 pandas 版本是否高于 1.1.0,并调整 kwargs。请先阅读这三个包装函数以及调用它们的测试。完成的标准是:移除版本检查和 kwargs 分支逻辑,包装函数仍能通过现有测试套件,并确认 pandas 的最低版本高于 1.1.0。将包装函数替换为直接的 pandas 调用是一个更大的独立问题,最好交由维护者决定。

由索引模型根据 Issue 内容生成。

描述

testing

We have our own wrappers in conftest.py for the three pandas assert_X_equal functions. We originally added those because the default tolerances of those functions changed in pandas 1.1.0 (see #1018). Our wrappers check the version of pandas and do some simple kwarg manipulation based on whether the installed pandas is greater or lower than 1.1.0.

Now that our minimum pandas is greater than 1.1.0, the version checking is no longer needed and we can simplify those functions.

It is also worth looking into whether we can/should get rid of those wrappers entirely and just use the pandas functions directly, but that change might require a lot of work (https://github.com/pvlib/pvlib-python/issues/1018#issuecomment-668631386).

主要语言
Python
星标
1.7k
派生
1.2k
平均合并
3 天 18 小时
30 天内合并 PR
13

环境准备

从这里开始

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

pvlib/pvlib-python 的其他 Issue

查看 pvlib/pvlib-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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