Skip to content

Commit 3cd7ed5

Browse files
committed
Pass sort parameter into union in join function
1 parent b0a3444 commit 3cd7ed5

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
@@ -3246,7 +3246,7 @@ def join(self, other, how='left', level=None, return_indexers=False,
32463246
elif how == 'inner':
32473247
join_index = self.intersection(other, sort=sort)
32483248
elif how == 'outer':
3249-
join_index = self.union(other)
3249+
join_index = self.union(other, sort=sort)
32503250

32513251
if sort:
32523252
join_index = join_index.sort_values()

0 commit comments

Comments
 (0)