Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to read pandas metadata in read_parquet if index_col is None. #1695

Merged
merged 8 commits into from
Aug 4, 2020

Conversation

ueshin
Copy link
Collaborator

@ueshin ueshin commented Aug 1, 2020

If a parquet file is stored by pandas, there is a metadata to describe index columns.
We can read it and use as index_col if it's not specified.
Resolves #1645.

@ueshin ueshin requested a review from HyukjinKwon August 1, 2020 01:13
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like the current approach much better!

@HyukjinKwon HyukjinKwon merged commit 66df1b0 into databricks:master Aug 4, 2020
@ueshin ueshin deleted the read_parquet branch August 4, 2020 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read parquet file from Pandas
2 participants