Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into multi-index-join
Browse files Browse the repository at this point in the history
  • Loading branch information
harisbal committed Sep 19, 2018
2 parents b581789 + 40dfadd commit 2d61a12
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 507 deletions.
31 changes: 0 additions & 31 deletions ci/appveyor-27.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions ci/appveyor-36.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions ci/travis-35-osx.yaml

This file was deleted.

9 changes: 5 additions & 4 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3940,10 +3940,11 @@ def _join_multi(self, other, how, return_indexers=True):
self_is_mi = isinstance(self, MultiIndex)
other_is_mi = isinstance(other, MultiIndex)

# figure out join names
self_names = com._not_none(*self.names)
other_names = com._not_none(*other.names)
overlap = list(set(self_names) & set(other_names))
if self_is_mi and other_is_mi:

# Drop the non matching levels
ldrop_levels = list(set(self_names) - set(overlap))
rdrop_levels = list(set(other_names) - set(overlap))

self_jnlevels = self.droplevel(ldrop_levels)
other_jnlevels = other.droplevel(rdrop_levels)
Expand Down
Loading

0 comments on commit 2d61a12

Please sign in to comment.