the dataframe of "sql(query).fetch_df()" lost index

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
database

調査の方向性

まず、マルチインデックスを含む代表的な parquet ファイルを使って、issue にある SQL と fetchdf() の再現を実行し、返された dataframe を調べてソースデータと比較します。Python dataframe の変換時にデータが失われているかどうかを絞り込む前に、現在の build を確認します。動作が再現され、インデックス保持の結果が回帰テストでカバーされていれば完了です。

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

説明

needs triage
What happens?

I load one dateframe (parquet file) with multi-index from s3 by the code:

sql = "SELECT * FROM read_parquet('s3://the-path-of-parquet');"
df = con.sql(sql).fetchdf() # <- the dataframe lost the index
To Reproduce
sql = "SELECT * FROM read_parquet('s3://the-path-of-parquet');"
df = con.sql(sql).fetchdf() # <- the dataframe lost the index
OS:

OSX

DuckDB Package Version:

1.3.2

Python Version:

3.11.0

Full Name:

Jack Tang

Affiliation:

Acme

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have not tested with any build

Did you include all relevant data sets for reproducing the issue?

No - Other reason (please specify in the issue body)

Did you include all code required to reproduce the issue?
  • Yes, I have
Did you include all relevant configuration to reproduce the issue?
  • Yes, I have
主要言語
Python
スター
206
フォーク
126
平均マージ
20時間 18分
マージ済み PR(30日)
36

環境構築

はじめの一歩

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

duckdb/duckdb-python のほかの issue

duckdb/duckdb-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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