What are the pandas .str and .dt accessors for, and how do you use them on string and datetime columns?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: This pandas interview question asks what the .str and .dt accessors are for and how to use them on string and datetime columns. It tests whether you know the common methods, the dtype each accessor needs, and how missing values and performance behave.