From 0b7d78b824ea42438145be734633132d8be927fb Mon Sep 17 00:00:00 2001 From: galipremsagar Date: Wed, 13 Sep 2023 13:53:37 -0700 Subject: [PATCH] cleanup --- python/cudf/cudf/core/dataframe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cudf/cudf/core/dataframe.py b/python/cudf/cudf/core/dataframe.py index 572837979cc..e5ba8bf0b63 100644 --- a/python/cudf/cudf/core/dataframe.py +++ b/python/cudf/cudf/core/dataframe.py @@ -5390,7 +5390,7 @@ def from_records(cls, data, index=None, columns=None, nan_as_null=False): else: df._index = as_index(index) if isinstance(columns, pd.Index): - df._data._level_names = list(columns.names) + df._data._level_names = tuple(columns.names) return df @classmethod @@ -5448,7 +5448,7 @@ def _from_arrays(cls, data, index=None, columns=None, nan_as_null=False): data, nan_as_null=nan_as_null ) if isinstance(columns, pd.Index): - df._data._level_names = list(columns.names) + df._data._level_names = tuple(columns.names) if index is None: df._index = RangeIndex(start=0, stop=len(data))