title: Transforming type Int64Index into an integer index in Python
body: <p>I'm quite new with python, however, I have to accomplish some assignment and I am struggling now on a problem. I try to get the index of the element in a table A when some other parameter from this table A corresponds to a value in a list B. The table A also already contains a column <code>"index"</code> where all elements are numerated from 0 till the end. Moreover, the values in <code>tableA.parameter1</code> and listB can coincide only once, multiple matches are not possible. So to derive the necessary index I use a line</p>
  
  <pre><code>t=tableA.index[tableA.parameter1==listB[numberObservation]]
  </code></pre>
  
  <p>However, what I get as a result is something like:</p>
  
  <pre><code>t Int64Index([2], dtype='int64')
  </code></pre>
  
  <p>If I use the variable t in this format Int64Index, it doesn't suit for the further code I have to work with. Actually, I need only 2 as an integer number, without all this redundant rest. </p>
  
  <p>Can somebody please help me to circumvent my problem? I am in total despair and would be grateful for any help.</p>