title: How to plot two variables on two different y-axes in python?
body: <p>I try to build a graphy with one x-axis and two y-axes, with all axes comming from a dataframe (similar to the graphs <a href="https://tylervigen.com/spurious-correlations" rel="noreferrer">here</a>). Here are my example data: </p>
  
  <pre><code>import pandas as pd
  
  df = pd.DataFrame(data={'year': [2000, 2001, 2002], 
                          'deaths': [327, 456, 509], 
                          'cheese': [13.5, 13.7, 13.8]})
  </code></pre>
  
  <hr>
  
  <p>I only found questions covering <a href="https://stackoverflow.com/questions/40071096/how-to-plot-multiple-lines-in-one-figure-in-pandas-python-based-on-data-from-mul">multiple lines based on a categorical variable (what I don't need)</a> or <a href="https://stackoverflow.com/questions/11640243/pandas-plot-multiple-y-axes">more than two axis with an answer I, as a beginner, don't understand</a>.</p>