Skip to content

Commit

Permalink
Update python/cudf/cudf/core/dataframe.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bradley Dice <[email protected]>
  • Loading branch information
isVoid and bdice authored Feb 5, 2022
1 parent c4f115b commit 1caa64f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5872,9 +5872,7 @@ def to_struct(self, name=None):
"requires field name to be string. Non-string column names will "
"be casted to string as the field name."
)
field_names = [str(name) for name in self._data.names]
else:
field_names = self._data.names
field_names = [str(name) for name in self._data.names]

col = cudf.core.column.build_struct_column(
names=field_names, children=self._data.columns, size=len(self)
Expand Down

0 comments on commit 1caa64f

Please sign in to comment.