title: How do I plot time series data by week and year?
body: <p>I have a simple time series dataframe('cats'). Transactions by year and week. I just want a line chart with the year and week in the axis.</p>
  
  <pre><code>    year    week    transactions
  0   2013    25      1824
  1   2013    26      1876392
  2   2013    27      2048913
  3   2013    28      2060043
  4   2013    29      1864779
  5   2013    30      1844886
  6   2013    31      2089084
  7   2013    32      2017478
  8   2013    33      1927819
  9   2013    34      1965046
  </code></pre>
  
  <p>I can get the line to work here doing this, but it only plots vs the index</p>
  
  <p><code>plt.plot(cats['total_sales'])</code></p>
  
  <p><a href="https://i.stack.imgur.com/DvX9O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DvX9O.png" alt="enter image description here"></a></p>
  
  <p>But when I try to add an axis something like this happens</p>
  
  <p><code>plt.plot(cats['year'],cats['total_sales'])</code></p>
  
  <p><a href="https://i.stack.imgur.com/9A3HK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9A3HK.png" alt="enter image description here"></a></p>