What is a 0-dimensional array in NumPy, and how do you extract a Python scalar from an array using .item() or .tolist()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what a 0-dimensional NumPy array is and how .item() and .tolist() turn array values into native Python scalars. Tests shape and dtype basics, the difference between arrays, NumPy scalars and Python scalars, and why the conversion matters for JSON.