Explain the difference between pandas concat() and the removed append() method, and why concat() is now preferred.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how pandas concat() differs from the DataFrame.append() method that pandas 2.0 removed, and why concat() is the recommended way to combine frames. It tests knowledge of the concat options, index handling when migrating old code, and the cost of growing a DataFrame row by row.