How do you select single or multiple columns from a Pandas DataFrame?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to pull one column or several columns out of a pandas DataFrame and what type each approach returns. Tests everyday pandas fluency: bracket and attribute access, loc and iloc, keeping results two-dimensional, and the pitfalls around missing names and copies.