annotation.py:get_contained_labels (1335): pandas throws TypeError: Passing a set as an indexer is not supported. Use a list instead.
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
調査の方向性
annotation.py の get_contained_labels から始め、特に 1335-1355 行付近のインデックス指定を確認し、set ベースの label_map インデックス指定がほかに存在する箇所も調査してください。影響を受ける annotation のアクセスパスを pandas 2.1.3 以降で検証し、set インデクサーの TypeError が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Using python version of libwfdb 4.1.2 which is according to pypi the latest.
Since lately when accessing the annotations i do get the error
TypeError: Passing a set as an indexer is not supported. Use a list instead.
This is caused by passing the following indexing tuple in line
index_vals = {1, 5}
# annotation.py(1355)get_contained_labels
contained_labels = label_map.loc[index_vals, :]
for now i do fix this by replacing the above line by
contained_labels = label_map.loc[list(index_vals), :]
and any further occurence.
The reason is that pandas has droped support for settype index arround version 2.1.3 which i do have currently installed.
- 主要言語
- Jupyter Notebook
- スター
- 853
- フォーク
- 322
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MIT-LCP/wfdb-python のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
MIT-LCP/wfdb-python#568 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
MIT-LCP/wfdb-python#557 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
MIT-LCP/wfdb-python#554 ·
-
WFDB path ignored オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
MIT-LCP/wfdb-python#545 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
MIT-LCP/wfdb-python#540 ·
MIT-LCP/wfdb-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
arviz-devs/arviz-stats#461 ·
-
bug silent-incorrectness
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NVIDIA/NeMo-Agent-Toolkit#2264 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
CorrelAid/formtransform#44 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100