AI engineering glossary · NumPy pandas visualization
What is datetimeIndex?
DatetimeIndex: A pandas index made of timestamps. It enables selecting data by date strings or ranges, grouping by periods, and resampling. Most time series work in pandas starts by setting one as the index of a DataFrame.
DatetimeIndex: an example
After df.set_index('date'), df.loc['2026-03'] returns all rows from March 2026.
Related terms
More NumPy pandas visualization terms
Where you learn it
DatetimeIndex is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.