When would you use pandas eval() and query() for large expressions?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks when pandas eval() and query() are worth using for long arithmetic and boolean expressions on large DataFrames. Tests your understanding of intermediate arrays, the numexpr engine, frame-size overhead, and the syntax limits of string expressions.