python pandas dataframe slicing by date conditions,df.sort_index()