What is the difference between a view and a copy in pandas, and how does it relate to SettingWithCopyWarning?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how a pandas view differs from a copy and why chained indexing triggers the SettingWithCopyWarning. Tests whether you know which indexing operations share memory, how to write safely with .loc, and what Copy-on-Write changes.