BUG: df.query and df.eval harcode level #4478
Labels
Code Quality 💯
Improvements or issues to improve quality of codebase
P2
Minor bugs or low-priority feature requests
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. What kind of performance improvements would you like to see with this new API?
For the pandas API functions
df.query
anddf.eval
, Modin hardcodes the function depth for local and global variable scopes. This is done inmodin/pandas/dataframe.py
in the_update_var_dicts_in_kwargs
function:Instead of this approach, Modin should support the
levels
parameter inpandas.eval
(called bydf.query
anddf.eval
): https://pandas.pydata.org/docs/reference/api/pandas.eval.html#pandas.eval to create the local and global scopes.The text was updated successfully, but these errors were encountered: