title: IndexError: index out of bounds in pandas
body: <p>I am a beginner in pandas. I want to extract a column from excel file to python array with pandas.I want to run a loop through whole column. I want to print 1st data in that column.Here is my code:</p>
  
  <pre><code>import pandas as pd
  xl_workbook = pd.ExcelFile("Summary.xlsx")  # Load the excel workbook
  df = xl_workbook.parse("Sheet1")  # Parse the sheet into a dataframe
  df['transactionqtr'] = pd.to_datetime(df['transactionqtr'],errors ='coerce')
  df['commencementdate'] = pd.to_datetime(df['commencementdate'],errors ='coerce')
  df=df.dropna()
  df['transactionqtr'] = df['transactionqtr'].apply(lambdax:x.date().strftime('%m%d%y'))
  df['commencementdate'] = df['commencementdate'].apply(lambda x:x.date().strftime('%m%d%y'))
  arr1 = df['transactionqtr'][1][1]
  arr2 = df['commencementdate'][1][1]
  print(arr1)
  print(arr2)
  </code></pre>
  
  <p>But it shows IndexError: index out of bounds in this line:</p>
  
  <pre><code>arr1 = df['transactionqtr'][1][1]
  arr2 = df['commencementdate'][1][1]
  </code></pre>
  
  <p>How should I solve this? Please also guide me for better code.</p>