Skip to content

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

Description

@jacktang

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions