title: Filter date range column
body: <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>ID</th>
  <th>Date</th>
  <th>Name</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>0</td>
  <td>2021-12-06T11:01:54-08:00</td>
  <td>Victor</td>
  </tr>
  <tr>
  <td>1</td>
  <td>2017-02-26T20:32:35-08:00</td>
  <td>Jara</td>
  </tr>
  <tr>
  <td>2</td>
  <td>2016-01-16T19:33:02-08:00</td>
  <td>Perez</td>
  </tr>
  <tr>
  <td>3</td>
  <td>2021-12-06T10:03:56-08:00</td>
  <td>Loco</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I'm trying to filter matches for date range between current time and previous hour (e.g. <code>now = 22:18 UTC</code> and <code>previous hour = 21:18 UTC</code>) reading off of a csv file with multiple entries as shown above.</p>
  <pre class="lang-python prettyprint-override"><code>import pandas as pd
  import datetime
  
  df = pd.read_csv('file.csv', parse_dates=['Date'])
  
  # Converts from PST to UTC (e.g original date for ID 0 was shown as 2019-11-05 18:28:13-08:00)
  df['Date'] = pd.to_datetime(df['Date'], utc=True)
  
  today = datetime.datetime.today()
  df[df[&quot;Date&quot;] &gt;= (pd.to_datetime(&quot;today&quot;) - pd.Timedelta(hours=1))]
  </code></pre>
  <p>For some reason I keep getting the following error:</p>
  <pre class="lang-error prettyprint-override"><code>TypeError: Invalid comparison between dtype=datetime64[ns, UTC] and Timestamp
  </code></pre>
  <p><code>df.dtypes</code> yields:</p>
  <pre><code>ID            int64
  Date          datetime64[ns, UTC]
  Name          object
  </code></pre>