Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed May 23, 2024
1 parent 2d4c7cd commit 472e22e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions py-polars/tests/unit/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,11 @@ def small_parquet_path(io_files_path: Path) -> Path:
def test_to_from_buffer(
df: pl.DataFrame, compression: ParquetCompression, use_pyarrow: bool
) -> None:
print(df)
df = df[["list_str"]]
print(df)
buf = io.BytesIO()
df.write_parquet(buf, compression=compression, use_pyarrow=use_pyarrow)
buf.seek(0)
read_df = pl.read_parquet(buf, use_pyarrow=use_pyarrow)
print(read_df)
assert_frame_equal(df, read_df, categorical_as_str=True)


Expand All @@ -113,7 +110,7 @@ def test_read_parquet_respects_rechunk_16416(
df = pl.DataFrame({"a": [1]})
df = pl.concat([df, df, df])
buf = io.BytesIO()
df.write_parquet(buf)
df.write_parquet(buf, row_group_size=1)
buf.seek(0)

rechunk, expected_chunks = rechunk_and_expected_chunks
Expand Down

0 comments on commit 472e22e

Please sign in to comment.