slicing with dates in pandas dataframe code example Example: pands slice datetime index df['2009-05-01' :'2010-03-01']