Skip to content

Commit ada7346

Browse files
committed
REFACT: remove unnecessary change of sort from True to None
1 parent 0f96dbe commit ada7346

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/core/indexes/api.py

-4
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ def conv(i):
214214
return result.union_many(indexes[1:])
215215
else:
216216
for other in indexes[1:]:
217-
# GH 35092. Pass sort to Index.union
218-
# Index.union expects sort=None instead of sort=True
219-
if sort:
220-
sort = None
221217
result = result.union(other, sort=sort)
222218
return result
223219
elif kind == "array":

0 commit comments

Comments
 (0)