We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e001500 commit 41704e2Copy full SHA for 41704e2
pandas/core/generic.py
@@ -195,7 +195,11 @@ def __unicode__(self):
195
def _dir_additions(self):
196
""" add the string-like attributes from the info_axis """
197
additions = set([c for c in self._info_axis
198
- if isinstance(c, string_types) and isidentifier(c)])
+ if isinstance(c, string_types) and isidentifier(c)] +
199
+ [c[0] for c in self._info_axis
200
+ if isinstance(c, tuple) and
201
+ isinstance(c[0], string_types) and
202
+ isidentifier(c[0])])
203
return super(NDFrame, self)._dir_additions().union(additions)
204
205
@property
0 commit comments