title: What is the best and fastest way to compare a column based on the other column
body: <p>There are two columns as &quot;hour&quot; and &quot;passenger&quot; in a dataframe.</p>
  <pre><code>df
  +------+------+-----------+
  | id   | hour | passenger |
  +------+------+-----------+
  | 1    | 11   | 4         |
  +------+------+-----------+
  | 2    | 12   | 5         |
  +------+------+-----------+
  | 3    | 23   | 6         |
  +------+------+-----------+
  | 4    | 15   | 4         |
  +------+------+-----------+
  | 5    | 12   | 3         |
  +------+------+-----------+
  | ...  | ...  | ...       |
  +------+------+-----------+
  | 2234 | 10   | 2         |
  +------+------+-----------+
  </code></pre>
  <p>The below code does not work.</p>
  <pre><code>plt.figure(figsize=(10,5))
  plt.hist(df.hour, df.passenger )
  plt.title('passenger vs hour') 
  plt.xlabel('passenger')
  plt.ylabel('hour')
  </code></pre>
  <p>How to change this code? Or other solution?</p>
  <p>Thanks.</p>