Skip to content

CLN: File handling for PyArrow parquet #37828

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

Merged
merged 1 commit into from
Nov 18, 2020
Merged

CLN: File handling for PyArrow parquet #37828

merged 1 commit into from
Nov 18, 2020

Conversation

twoertwein
Copy link
Member

  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

De-duplicate file handling of PyArrows' parquet.

@jreback jreback added the IO Parquet parquet, feather label Nov 14, 2020
@jreback jreback added this to the 1.2 milestone Nov 14, 2020
@jreback jreback added the Refactor Internal refactoring of code label Nov 14, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. the ci / docs build is failng, can you merge master and and ping on greenish

@twoertwein
Copy link
Member Author

I'm looking into this, I fear that the docs are testing a case that isn't captured in the tests itself.

@@ -691,6 +691,7 @@ def test_partition_cols_supported(self, pa, df_full):
dataset = pq.ParquetDataset(path, validate_schema=False)
assert len(dataset.partitions.partition_names) == 2
assert dataset.partitions.partition_names == set(partition_cols)
assert read_parquet(path).shape == df.shape
Copy link
Member Author

Choose a reason for hiding this comment

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

Making sure that read_parquet is more tested when reading from a directory.

The read DataFrame has shuffled rows. Is that expected?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jreback
Copy link
Contributor

jreback commented Nov 15, 2020

@twoertwein can you merge master and apply suggestions, ping on greenish

@twoertwein
Copy link
Member Author

@jreback green'ish. I think I incorporated @jorisvandenbossche comments (renamed variable and function; do not type-abuse IOHandles)

@jreback jreback merged commit ebc471e into pandas-dev:master Nov 18, 2020
@jreback
Copy link
Contributor

jreback commented Nov 18, 2020

thanks @twoertwein

@twoertwein twoertwein deleted the parquet branch November 19, 2020 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Parquet parquet, feather Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants