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

Support duplicated columns (maybe?)

オープン
#778 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
pandas, python
領域
data

調査の方向性

まず、issue の pandas の例で重複した列の動作を再現します。単一の名前による選択と、繰り返し指定した名前による選択の両方を含めてください。列の射影と集合比較が重複したラベルをどのように扱うかを追跡し、その後、それぞれの選択形式で列数が一貫していることを検証するテストを定義します。重複した列が、示されている選択のセマンティクスを変更せずにサポートされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

We currently don't support duplicated columns, introducing support is not completely trivial since we would have to handle them properly in column projections. One example to explain the difficulties:

pdf = pd.DataFrame([[1, 2], [3, 4]], columns=list("aa"))
print(pdf["a"])

print(pdf[["a", "a"]])
0  1  2
1  3  4
   a  a  a  a
0  1  2  1  2
1  3  4  3  4

Selecting duplicated columns once returns all of them, but having them n times in the indexer duplicates the columns also n times, so we would have to be very careful to keep the count consistent. Other things also depend on set comparisons, which makes this even harder.

I don#t think that this is a very important feature for now, so I don't intend to prioritise this anytime soon

主要言語
Python
スター
89
フォーク
26
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

dask/dask-expr のほかの issue

dask/dask-expr の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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