What are common pandas anti-patterns and their idiomatic alternatives?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks for the common pandas anti-patterns, such as row loops, growing a DataFrame in a loop and chained indexing, along with the idiomatic code that replaces each. It tests practical knowledge of vectorization, indexing with loc, dtypes and the string and datetime accessors.