ENH: add some more common Nodes
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
The issue provides a proposed DFNode class but names no repository files, tests, or entry point. Start by reviewing the existing Node abstractions and pandas read_* and to_* conventions; the work would be complete when the project has an agreed, tested way to read and write common dataframe formats with load and save options.
由索引模型根據 Issue 內容生成。
描述
Writing pandas dataframes to disk seems really common. I am going to have to write my own DFNode class for this. Would you like me to generalize it enough and then contribute it here?
I would imagine something like
class DFNode:
def __init__(self, path: str | ..., kind: Literal["csv", "parquet", ...], load_kwargs: dict[str, Any = {}, save_kwargs: dict[str, Any]):
self.path = path
self.kind = kind
self.load_kwargs = load_kwargs
self.save_kwargs = save_kwargs
def save(self, value: Any) -> None:
saver = getattr(value, f"to_{self.kind}")
saver(self.path, **self.save_kwargs)
def load(self, is_product: bool) -> Any:
if is_product:
return self
loader = getattr(pd, f"read_{self.kind}")
return loader(self.path, **self.load_kwargs)
- 主要語言
- Python
- 星號
- 145
- 分支
- 14
- 平均合併
- 4 天 11 小時
- 30 天內合併 PR
- 18
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
pytask-dev/pytask 的其他 Issue
-
enhancement
難度 5/5 一週以上 新手友好度 45/100
pytask-dev/pytask#985 ·
維護者通常 3 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 30/100
pytask-dev/pytask#786 · 2 則留言 ·
維護者通常 3 天內回覆
-
bug
難度 3/5 1-2 天 新手友好度 42/100
pytask-dev/pytask#513 · 8 則留言 ·
維護者通常 3 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
pytask-dev/pytask#403 ·
維護者通常 3 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 35/100
pytask-dev/pytask#320 · 1 則留言 ·
維護者通常 3 天內回覆
查看 pytask-dev/pytask 的全部 Issue
相似的 Issue
-
needs-human needs-triage
難度 2/5 1-3 小時 新手友好度 76/100
gke-labs/kube-agents#2400 · 1 則留言 ·
維護者通常 1 天內回覆
-
Device Details tables: FS/SF columns contradict each other (nfet_01v8 Vt row, pfet_01v8 Idsat row)未關閉
難度 2/5 1-3 小時 新手友好度 75/100
google/skywater-pdk#450 ·
-
Drained trajectory arrays are overwritten when the sequence buffer is reused可能已有人在做 @sylvesterkaczmarek 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
google-deepmind/bsuite#56 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
LearningCircuit/local-deep-research#7206 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
chingu-voyages/V62-tier3-team-33#285 ·
維護者通常 1 天內回覆