Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Sep 13, 2023
1 parent eb53a5a commit 0b7d78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 0b7d78b

Please sign in to comment.