What is the difference between a view and a copy in pandas?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how a view differs from a copy in pandas and what that means when you modify a subset of a DataFrame. It tests indexing behavior, chained assignment and SettingWithCopyWarning, Copy-on-Write semantics across pandas versions, and safe ways to write back to data.