title: x axis gets transformed to floats
body: <p>I am trying to plot my data grouped by year, and for each year, i want to count the number of users. Below, i just transformed the date column from float to integer.</p>
  
  <p>This is my plot<a href="https://i.stack.imgur.com/Md0nn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Md0nn.png" alt="enter image description here"></a></p>
  
  <p>If you see the x-axis, my year ticker seems to have become a float and the each ticker is 0.5 tick apart. </p>
  
  <p>How do i make this purely an integer?</p>
  
  <hr>
  
  <p>Changing the groupby has the same result:
  <a href="https://i.stack.imgur.com/mr3B3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mr3B3.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>ticks are still 2 spaces apart after converting the year column to a string format</p>
  
  <pre><code>df['year'] = df['year'].astype(str)
  </code></pre>
  
  <p>:
  <a href="https://i.stack.imgur.com/zjXv1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zjXv1.png" alt="enter image description here"></a></p>