Skip to content

Commit ae16e8c

Browse files
committed
BUG: assign consensus name to index union in array case GH13475
1 parent bfac136 commit ae16e8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexes/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ def conv(i):
220220
index = indexes[0]
221221
for other in indexes[1:]:
222222
if not index.equals(other):
223-
return _unique_indices(indexes)
223+
index = _unique_indices(indexes)
224+
break
224225

225226
name = get_consensus_names(indexes)[0]
226227
if name != index.name:

0 commit comments

Comments
 (0)