We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32f562d commit 9cc7215Copy full SHA for 9cc7215
pandas/core/generic.py
@@ -196,7 +196,11 @@ def __unicode__(self):
196
def _dir_additions(self):
197
""" add the string-like attributes from the info_axis """
198
additions = set([c for c in self._info_axis
199
- if isinstance(c, string_types) and isidentifier(c)])
+ if isinstance(c, string_types) and isidentifier(c)] +
200
+ [c[0] for c in self._info_axis
201
+ if isinstance(c, tuple) and
202
+ isinstance(c[0], string_types) and
203
+ isidentifier(c[0])])
204
return super(NDFrame, self)._dir_additions().union(additions)
205
206
@property
0 commit comments