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
I investigated this error and found it was introduced by this PR: #23915
The root cause is it's the new object with the same class when iterating the attributes of a object. In this issue, the special attribute is base and will return the same offset object with a base attribute.
I wonder if I can change the name of this attribute from base to _base. It will prevent iterating this attribute.
I can still reproduce this on main, this error is really misleading.
If this is not going to be fixed anytime soon we should at least consider raising a TypeError instead
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
The text was updated successfully, but these errors were encountered: