8000 Pass kwargs from read_parquet() to the underlying engines. by criemen · Pull Request #18216 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Pass kwargs from read_parquet() to the underlying engines. #18216

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test filtering the row groups for fastparquet.
  • Loading branch information
Cornelius Riemenschneider committed Nov 13, 2017
commit 243172d80097e52eb032aab10f3967dd8598db5e
9 changes: 9 additions & 0 deletions pandas/tests/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,12 @@ def test_datetime_tz(self, fp):
with catch_warnings(record=True):
self.check_round_trip(df, fp, df.astype('datetime64[ns]'),
extra_write_kwargs={'compression': None})

def test_filter_row_groups(self, fp):
d = {'a': list(range(0, 3))}
df = pd.DataFrame(d)
with tm.ensure_clean() as path:
df.to_parquet(path, fp, compression=None,
row_group_offsets=1)
result = read_parquet(path, fp, filters=[('a', '==', 0)])
assert len(result) == 1
0