Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Oct 12, 2024
1 parent 7ad6492 commit 1ea98ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/cudf_polars/cudf_polars/containers/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,9 @@ def deserialize(cls, header: dict, frames: list[memoryview | plc.gpumemoryview])
table = plc.contiguous_split.unpack_from_memoryviews(
packed_metadata, packed_gpu_data
)
columns_kwargs = header["columns_kwargs"]

if table.num_columns() != len(columns_kwargs):
raise ValueError("Mismatching columns_kwargs and table length.")
return cls(
Column(c, **kw)
for c, kw in zip(table.columns(), columns_kwargs, strict=True)
for c, kw in zip(table.columns(), header["columns_kwargs"], strict=True)
)

def serialize(self):
Expand Down

0 comments on commit 1ea98ab

Please sign in to comment.