Explain different ways to add or delete columns/rows in a Pandas DataFrame, discussing any performance considerations.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Covers the main ways to add and remove columns and rows in a pandas DataFrame, from direct assignment and assign to drop, pop and concat. Tests whether you know which operations copy data and why growing a frame row by row in a loop is slow.