title: KeyError: "None of [Int64Index([1960, 1961, 1962, 1963, 1964], dtype='int64')] are in the [columns]"
body: <p>I am trying to scatter plot a dataframe and for this I have provided it with x and y components. It is showing error in the x component. it gives the error on 'Year' column. I have checked manually that Year Column exists in the dataframe still it shows error. Note that year column contains years from 1960 to 1964.
  <a href="https://i.stack.imgur.com/XtPk5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XtPk5.png" alt="enter image description here"></a></p>
  
  <pre><code>urb_pop_reader = pd.read_csv('ind_pop_data.csv', chunksize=1000)
  df_urb_pop = next(urb_pop_reader)
  df_pop_ceb = df_urb_pop[df_urb_pop['CountryCode'] == 'CEB']
  pops = zip(df_pop_ceb['Total Population'], 
             df_pop_ceb['Urban population (% of total)'])
  pops_list = list(pops)
  
  # Use list comprehension to create new DataFrame column 'Total Urban Population'
  df_pop_ceb['Total Urban Population'] = [int(a[0]*(a[1]*0.01)) for a in pops_list]
  
  # Plot urban population data
  df_pop_ceb.plot(kind='scatter', x=df_pop_ceb['Year'], y=df_pop_ceb['Total Urban Population'])
  plt.show()
  </code></pre>