python - Compare two datetime values with pandas? -
i make following comparison between 2 datetime values using pandas:
for i1, df1_row in df1.iterrows(): i2, df2_row in df2.iterrows(): if df1['time'] >= df2['time']: print 'time 1 greater time 2'
but getting following error:
typeerror: can't compare datetime.time series
both dates have been formatted same way using pd.to_datetime. know problem be?
Comments
Post a Comment