Passing a DataFrame to exec() in Python code
I am encountering an error when using exec() to execute a function that requires a DataFrame as input. Passing a dictionary containing all the required arguments, but getting the following error:
_exec_output = position_parity(**{‘feature_importance’: Variable Importance
SyntaxError: invalid syntax. Perhaps you forgot a comma?