When would you use .at/.iat instead of .loc/.iloc in pandas?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks when to choose the pandas .at and .iat accessors over .loc and .iloc for reading or writing DataFrame values. Tests label versus position indexing, the cost of each accessor, and the pitfalls that show up after sorting or filtering a frame.