Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#2,263 コメント 2 件 リアクション 1 件 担当者 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 を調整しています。まずこの3つのラッパーと、それらを呼び出しているテストを読んでください。バージョンチェックと 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時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pvlib/pvlib-python のほかの issue

pvlib/pvlib-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。