From 205cc365960e3f27e7a4cfd8e2c5ce715a89c812 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Sat, 12 Oct 2024 15:26:34 +0200 Subject: [PATCH] clean up --- python/cudf_polars/cudf_polars/containers/dataframe.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/cudf_polars/cudf_polars/containers/dataframe.py b/python/cudf_polars/cudf_polars/containers/dataframe.py index b4bc2af2d59..60f944aa201 100644 --- a/python/cudf_polars/cudf_polars/containers/dataframe.py +++ b/python/cudf_polars/cudf_polars/containers/dataframe.py @@ -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):