Skip to content

Commit

Permalink
Pythonic object name set uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
er-eis committed May 3, 2024
1 parent b5de816 commit 2124759
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/cudf/cudf/core/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,7 @@ def concat(objs, axis=0, join="outer", ignore_index=False, sort=None):
else:
# All levels in the multiindex label must have the same type
has_multiple_level_types = (
len(
set().union(*(map(type, obj._data.keys()) for obj in objs))
)
> 1
len({type(name) for o in objs for name in o._data.keys()}) > 1
)
if has_multiple_level_types:
raise NotImplementedError(
Expand Down

0 comments on commit 2124759

Please sign in to comment.