Five Thousand Rows Budget
A request handler has a p99 budget of 500 ms and currently spends 210 ms of it here, on a frame of about 5,000 rows:
df["margin"] = df.apply(lambda r: (r.a * r.b - r.c) / r.d, axis=1)
All four columns are float64. Four proposals are on the table. Which is the right one?
Sign in to answer questions and track your progress
Sign In