Explain the difference between a shallow copy and a deep copy in NumPy
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how a shallow copy and a deep copy of a NumPy array differ, and which common operations share the original data buffer or allocate a new one. Tests understanding of views, the .base attribute, memory sharing checks, and the object-dtype edge case.