You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @konstantinmiller for the report. closing as duplicate of #27407. you may want to add a comment there to maybe include iterrows in that discussion.
When iterating over rows with either
iterrows()
oritertuples()
, it is not possible to access index names if you have a multi-index.So, I would expect something like that to work
However, since
ind
is not a named tuple, it throws anAttributeError: 'tuple' object has no attribute 'ind1'
Same with
itertuples()
:throws
AttributeError: 'tuple' object has no attribute 'ind1'
The text was updated successfully, but these errors were encountered: