Compare two datetime values with pandas?
<p>I would like to make the following comparison between two datetime values using pandas:</p>

<pre><code>for i1, df1_row in df1.iterrows():
    for i2, df2_row in df2.iterrows():
        if df1['time'] &gt;= df2['time']:
            print 'Time 1 greater than time 2'
</code></pre>

<p>But I am getting the following error:</p>

<pre><code>TypeError: can't compare datetime.time to Series
</code></pre>

<p>Both dates have been formatted the same way using pd.to_datetime. Does anyone know what the problem could be? </p>