Pandas 1.4 eval cache keyed to expression string only
Since pandas 1.4, the pd.eval function caches the parsed expression tree to accelerate repeated evaluations of identical strings. The cache key is derived exclusively from the expression string and does not track the current values of variables referenced within it. This design choice can produce stale results when a variable's value changes after the first