Skip to content

REGR: Series access with Index of tuples/frozenset #36147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 12, 2020
Prev Previous commit
Next Next commit
Only call _get_values_tuple when there is a MultiIndex
  • Loading branch information
rhshadrach committed Sep 7, 2020
commit 0a986074fd2176f34cb5e2b1f7321b505b2d28f7
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def _get_with(self, key):
"Indexing a Series with DataFrame is not "
"supported, use the appropriate DataFrame column"
)
elif isinstance(key, tuple):
elif isinstance(key, tuple) and isinstance(self.index, MultiIndex):
return self._get_values_tuple(key)

elif not is_list_like(key):
Expand Down