title: How to replace df.ix if .iloc and .loc don't seem to work?
body: <p>I'm trying to draw a map with Basemap following this tutorial: <a href="https://ramiro.org/notebook/basemap-choropleth/" rel="nofollow noreferrer">https://ramiro.org/notebook/basemap-choropleth/</a></p>
  <p>This part of the code throws an error ('DataFrame' object has no attribute 'ix'):</p>
  <pre><code>if iso3 not in df.index:
      color = '#dddddd'
  else:
      color = scheme[df.ix[iso3]['bin']]
  </code></pre>
  <p>Replacing with .iloc or .loc doesn't work. Please help.</p>