We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0607e03 commit 456a932Copy full SHA for 456a932
pandas/core/generic.py
@@ -190,7 +190,11 @@ def __unicode__(self):
190
def _dir_additions(self):
191
""" add the string-like attributes from the info_axis """
192
return set([c for c in self._info_axis
193
- if isinstance(c, string_types) and isidentifier(c)])
+ if isinstance(c, string_types) and isidentifier(c)] +
194
+ [c[0] for c in self._info_axis
195
+ if isinstance(c, tuple) and
196
+ isinstance(c[0], string_types) and
197
+ isidentifier(c[0])])
198
199
@property
200
def _constructor_sliced(self):
0 commit comments