I have a pandas DataFrame with date column named SDate, I would like to find the rows for which SDate's hour is between 2 and 4 pm, something like :
d=pd.read_csv("data.csv",parse_dates=['SDate'])
indices=np.nonzero(d.SDate.hour>=2&d.SDate.hour<=4)[0]
but this doesnt work like that. how to do it in the most pandas and pythonic way?
 
     
     
    