From 9a38213e067127bba10ba6d01c2ea28a7a816ec0 Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Fri, 17 Feb 2017 22:55:59 +0100 Subject: [PATCH] BUG: Trivial fix to #15447 --- pandas/core/indexing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 66510a7708e64..72c878dd88612 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1525,7 +1525,7 @@ def _getitem_axis(self, key, axis=0): # possibly convert a list-like into a nested tuple # but don't convert a list-like of tuples if isinstance(labels, MultiIndex): - if (not isinstance(key, tuple) and len(key) > 1 and + if (not isinstance(key, tuple) and len(key) and not isinstance(key[0], tuple)): if isinstance(key, ABCSeries): # GH 14730