How does NumPy handle mixed data types in one array, and when should you use object dtype?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how NumPy stores values of different types in an array that can hold only one dtype, and when the object dtype comes into play. Tests type promotion rules, the cost of object arrays and the use of structured arrays or pandas for mixed columns.