Skip to content

BUG: recursion limit on eval when operating on different types #5198

Closed
@TomAugspurger

Description

@TomAugspurger

Me being dumb discovered this:

In [209]: bug = pd.DataFrame({"A": [1, 2], 'B': ['c', 'd']})

In [210]: bug
Out[210]: 
   A  B
0  1  c
1  2  d

In [211]: bug.eval('A + B')

# stack trace truncated ...

RuntimeError: maximum recursion depth exceeded

cc @cpcloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions