BUG: resolvers in pandas.eval should accept list-like · Issue #14095 · pandas-dev/pandas (original) (raw)

I think the resolvers argument of pandas.eval requires a tuple and not a list

resolvers : list of dict-like or None, optional
A list of objects implementing the __getitem__ special method that you can use to inject an additional collection of namespaces to use for variable lookup. For example, this is used in the query() method to inject the index and columns variables that refer to their respective DataFrame instance attributes.

as with a list I get a

    kwargs['resolvers'] = kwargs.get('resolvers', ()) + resolvers
TypeError: can only concatenate tuple (not "list") to tuple