title: Python TypeError: cannot do positional indexing on <class 'pandas.core.indexes.numeric.Int64Index'>
body: <p>Apologies if this is a basic question, but I'm getting a Type Error, while trying to access values in a pandas dataframe.</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>TypeError: cannot do positional indexing on &lt; class 'pandas.core.indexes.numeric.Int64Index'> with these indexers [1] of &lt; type 'sage.rings.integer.Integer'></p>
  </blockquote>
  
  <p>The code is:</p>
  
  <pre><code>import pandas as pd
  df = pd.DataFrame({ 'A' : 1.,
              'B' : pd.Timestamp('20130102'),
              'C' : pd.Series(1,index=list(range(4)),dtype='float32')})
  print df.iloc[1]
  </code></pre>
  
  <p>Most likely I just don't understand how to use iloc correctly; can anyone help please?</p>