Dynamically evaluate an expression from a formula in Pandas
I would like to perform arithmetic on one or more dataframes columns using pd.eval. Specifically, I would like to port the following code that evaluates a formula:
I would like to perform arithmetic on one or more dataframes columns using pd.eval. Specifically, I would like to port the following code that evaluates a formula:
I have to port an algorithm from an Excel sheet to python code but I have to reverse engineer the algorithm from the Excel file.