Skip to content

Commit f3b517a

Browse files
committed
Pass sort parameter into union in join function
1 parent 4b31df2 commit f3b517a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3256,7 +3256,7 @@ def join(self, other, how='left', level=None, return_indexers=False,
32563256
elif how == 'inner':
32573257
join_index = self.intersection(other, sort=sort)
32583258
elif how == 'outer':
3259-
join_index = self.union(other)
3259+
join_index = self.union(other, sort=sort)
32603260

32613261
if sort:
32623262
join_index = join_index.sort_values()

0 commit comments

Comments
 (0)