title: Create a seaborn histogram with two columns of a dataframe
body: <p>I try to display a histogram with this dataframe.</p>
  <pre><code>   gr_age  weighted_cost
  0       1    2272.985462
  1       2    2027.919360
  2       3    1417.617779
  3       4     946.568598
  4       5     715.731002
  5       6     641.716770
  </code></pre>
  <p>I want to use <code>gr_age</code> column as the X axis and <code>weighted_cost</code> as the Y axis. Here is an example of what I am looking for with Excel:</p>
  <p><a href="https://i.stack.imgur.com/SFIrj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SFIrj.jpg" alt="Histogram example" /></a></p>
  <p>I tried with the following code, and with <code>discrete=True</code>, but it gives another result, and I didn't do better with displot.</p>
  <pre><code>sns.histplot(data=df, x=&quot;gr_age&quot;, y=&quot;weighted_cost&quot;)
  plt.show()
  </code></pre>
  <p>Thanking you for your ideas!</p>