Simplify or remove `assert_*_equal` wrappers around `pandas.testing` functions
維護者通常 1 天內回覆
@dgowdaan-cmyk 已經在處理了。
開始於 2026年7月8日。
評估
研究方向
assert_frame_equal、assert_series_equal 和 assert_index_equal 的包裝函式位於 conftest.py 中,它們會檢查 pandas 版本是否高於 1.1.0,並調整 kwargs。請先閱讀這三個包裝函式以及呼叫它們的測試。完成的標準是:移除版本檢查和 kwargs 分支邏輯,包裝函式仍能通過現有測試套件,並確認 pandas 的最低版本高於 1.1.0。將包裝函式替換為直接的 pandas 呼叫是一個更大的獨立問題,最好交由維護者決定。
由索引模型根據 Issue 內容生成。
描述
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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
pvlib/pvlib-python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
pvlib/pvlib-python#2903 · 2 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
pvlib/pvlib-python#2902 ·
維護者通常 1 天內回覆
-
Add an example or documentation on using 'bhi' from ERA5可能重新可做 @anshurajbisoyi98-ctrl 於 14 天前認領,目前沒有進行中的 PR。 未關閉
難度 2/5 1-3 小時 新手友好度 66/100
pvlib/pvlib-python#2880 · 2 則留言 ·
維護者通常 1 天內回覆
-
Use "long-wave" rather than "infra-red" to refer to thermal radiation.可能重新可做 @Rahi-padwal 於 251 天前認領,目前沒有進行中的 PR。 未關閉api easy
難度 2/5 1-3 小時 新手友好度 62/100
pvlib/pvlib-python#2653 · 6 則留言 ·
維護者通常 1 天內回覆
-
question
難度 1/5 1-3 小時 新手友好度 72/100
pvlib/pvlib-python#2637 · 10 則留言 ·
維護者通常 1 天內回覆
查看 pvlib/pvlib-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 68/100
collective/icalendar#1968 · 1 則留言 ·
維護者通常 1 天內回覆
-
Deferred from #1869: Complete the companion pytest guardrail update noted in the PR description...未關閉
難度 1/5 1 小時以內 新手友好度 95/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
NousResearch/hermes-agent#140958 ·
維護者通常 1 天內回覆
-
Bug triage/confirmed
難度 2/5 半天 新手友好度 85/100
agentscope-ai/agentscope#3355 ·
維護者通常 2 天內回覆