diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index d4d1368f3559..ebcc0e6d3687 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -10446,7 +10446,7 @@ def rows_by_key( data_cols = [k for k in self.schema if k not in key] values = self.select(data_cols) - zipped = zip(keys, values.iter_rows(named=named)) # type: ignore[call-overload] + zipped = zip(keys, values.iter_rows(named=named)) # type: ignore[call-overload] # if unique, we expect to write just one entry per key; otherwise, we're # returning a list of rows for each key, so append into a defaultdict.