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 摘要。