What is the best way to read a pin from Posit Connect directly into polars?
まだ誰も着手していません。
評価
調査の方向性
まず既存の pin_read と pin_download の動作を読み、その後、pull request 193 の fsspec アプローチと関連する issue 153 および 32 を比較します。Posit Connect からの直接読み取りで pandas なしの polars をサポートできるかを判断し、DataFrame-library の選択を現在の API にどのように組み込めるかを検討します。明確にサポートされるアプローチまたは実装方針が得られれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What is the best way to read a pin from Posit Connect directly into polars?
I have found a few options that work, but none of them are exactly what I am looking for.
(1) Use pin_download
This method is my favourite, but it requires one extra step, I can't get a polars dataframe directly from pin_read.
import pins
import polars as pl
board = pins.board_connect()
paths = board.pin_download("sam.edwardes/vessel_verbose_raw")
pl.read_parquet(paths)
(2) Use pandas
This works, but requires me to have pandas installed. I also assume there is some kind of performance hit b/c you first read into pandas, then into polars?
import pins
import pandas as pd
import polars as pl
board = pins.board_connect()
pl.DataFrame(board.pin_read("sam.edwardes/vessel_verbose_raw"))
(3) Use fsspec
I have not figured out how to implement this yet, but I found this example for duckdb:
https://github.com/rstudio/pins-python/pull/193
Is there a way to do this with polars?
Related issues
Suggestions
It would be nice if pins gave me a choice about what DataFrame library is used with pin_read. For example:
import pins
import polars as pl
board = pins.board_connect()
board.pin_read("sam.edwardes/vessel_verbose_raw", df_library='polars')
- 主要言語
- Python
- スター
- 59
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstudio/pins-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rstudio/pins-python#367 ·
-
.maint
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rstudio/pins-python#280 ·
-
testing
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rstudio/pins-python#196 ·
-
.enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rstudio/pins-python#363 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
rstudio/pins-python#354 ·
rstudio/pins-python の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信