How to eval series of expressions in Pandas
I have a dataframe with a column full of expressions: pd.Series("A + B", "B + C", ...)
it’s really long, so I would like to find a vectorized way to eval every expression with a local dictionary {"A": 5, "B": -2.1, ... }
.
How to eval series of expressions in Pandas
I have a dataframe with a column full of expressions: pd.Series("A + B", "B + C", ...)
it’s really long, so I would like to find a vectorized way to eval every expression with a local dictionary {"A": 5, "B": -2.1, ... }
.