Line Plot : x-axis values are not exactly same as in the data frame : <p><strong>I have already checked stackoverflow for any similar question but there is no answer to this.</strong></p>

<p>Recently I started learning <em>data visualization</em> in python. This is the data frame I worked upon: 
<a href="https://i.stack.imgur.com/y0u3z.png" rel="nofollow noreferrer">Immigration to Canada (virtual data)</a></p>

<p>This is the code: </p>

<pre><code>import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd

df = pd.read_excel('icdf.xlsx')
df.plot(kind="line")
plt.title('Immigration to Canada (virtual data)')
plt.xlabel('Years')
plt.ylabel('Number of immigrants')
plt.show()
</code></pre>

<p>Now, on running the above code I get this plot:
<a href="https://i.stack.imgur.com/W7HUz.png" rel="nofollow noreferrer">Line Plot for the data frame</a></p>

<p><strong>Why does the x-axis has 9 values viz. <em>(1980.0, 1980.5, 1981.0, 1981.5, 1982.0,...)</em> whereas according to the data frame it is expected to have 5 values viz. <em>(1980, 1981, 1982,...)</em>?</strong></p>
