how to slice dataframe on date code example Example: pands slice datetime index df['2009-05-01' :'2010-03-01']