What is Copy-on-Write in pandas 2.x and how does it change view/copy semantics?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Explain Copy-on-Write in pandas 2.x and how it changes whether modifying a slice or column affects the original DataFrame. Tests understanding of lazy copying, chained assignment, SettingWithCopyWarning, and how to migrate pandas code to the new semantics.