What is a DatetimeIndex and how do you create date ranges with date_range()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Explains what a pandas DatetimeIndex is and how to build one with pd.date_range(). Tests whether you know how start, end, periods and freq define a date sequence, which time-aware operations the index enables, and the common slicing and frequency alias pitfalls.