How to slice a Pandas Dataframe based on datetime index September 18, 2023 by Tarik If you have set the “Timestamp” column as the index , then you can simply use df['2009-05-01' :'2010-03-01']