Tracking issue: dataframe protocol implementation
まだ誰も着手していません。
評価
調査の方向性
まず、gh-38 のプロトコルに関する作業と、issues 39 および 42 にリンクされたディスカッション、PR 38 のディスカッション、会議への参照を読んでください。この tracking issue は、残っている categorical-dtype と buffer-ownership に関する疑問が解決され、ownership ルールが明確に文書化された場合にのみ完了します。
索引モデルが issue の本文から書いたものです。
説明
The bulk of the dataframe interchange protocol was done in gh-38. There were still a number of TODOs however, and more will likely pop up once we have multiple implementations so we can actually turn one type of dataframe into another type. This is the tracking issue for those TODOs and issues:
- Categorical dtypes: we should allow having
nullas a category; it should not have a specified meaning, it's just another category that should (e.g.) roundtrip correctly. See conversation in 8 Apr meeting. - Categorical dtypes: should they be a dtype in themselves, or should they be a part of the dtype tuple? Currently dtype is
(kind, bitwidth, format_str, endianness), with categorical being a value of thekindenum. Is making a 5th element in the dtype, with that element being another dtype 4-tuple, thereby allowing for nesting, sensible? - Add a
metadataattribute that can be used to store library-specific things. For example, Vaex should be able to store expressions for its virtual columns there. See PR gh-43 - Add a flag to throw an exception if the export cannot be zero-copy. (e.g. for pandas, possible due to block manager where rows are contiguous and columns are not - add a test for that). See PR gh-44
- Add a string dtype, with variable-length strings implemented with the same scheme as Arrow uses (an
offsetsand adatabuffer, see https://github.com/data-apis/dataframe-api/pull/38#discussion_r609818874). _See PR gh-45 - Signature of the
from_dataframeprotocol? See https://github.com/data-apis/dataframe-api/issues/42 and meeting of 20 May. - What can be reused between implementations in different libraries, and can/should we have a reference implementation? --> question needs answering somewhere.
- What is the ownership for buffers, who owns the memory? This should be clearly spelled out in the docs. An
ownerattribute is perhaps needed. See meeting minutes 4 March, https://github.com/data-apis/dataframe-api/issues/39, and comments on this PR.
- 主要言語
- Python
- スター
- 106
- フォーク
- 22
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
data-apis/dataframe-api のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
data-apis/dataframe-api#363 · コメント 1 件 · リアクション 8 件 ·
-
API design
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
data-apis/dataframe-api#356 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
data-apis/dataframe-api#355 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
data-apis/dataframe-api#352 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
data-apis/dataframe-api#351 ·
data-apis/dataframe-api の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
modelscope/FunASR#3728 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
open-compass/opencompass#2655 ·