title: Check if list of integers is in Python Pandas Index Dataframe
body: <p>I'm trying to check if some integers in a list exist in Index.</p>
  <p>My database is something like this:</p>
  <p>(My UC column below is actually my INDEX)</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>UC</th>
  <th>LATITUDE</th>
  <th>LONGITUDE</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>-9.6732</td>
  <td>-35.745</td>
  </tr>
  <tr>
  <td>2</td>
  <td>-9.6765</td>
  <td>-35.74</td>
  </tr>
  <tr>
  <td>3</td>
  <td>-9.67121</td>
  <td>-35.745</td>
  </tr>
  <tr>
  <td>4</td>
  <td>-9.6712</td>
  <td>-35.745</td>
  </tr>
  <tr>
  <td>5</td>
  <td>-9.67115</td>
  <td>-35.76</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>And the code I've built:</p>
  <pre><code>base = pd.read_csv('database.txt', sep=&quot;,&quot;)
  base.set_index('UC', inplace = True)
  
  dataInput = [int(x) for x in input('Digite as UCs: ').split(&quot;,&quot;)]
  size = len(dataInput)
  
  # That list built above is what I need to check if those &quot;UC&quot; exist in INDEX of my dataframe
  # I've tried this, but doesn't worked:
  
  print(base['UC'].isin(dataInput))
  
  # I need to check if all the items in my list exist in order to create exceptions to errors and print just what is in my dataframe 
  
  </code></pre>