title: Pandas dropping columns and rows from a dataframe that came from Excel
body: <p>I am trying to drop some useless columns in a dataframe but I am getting the error: "too many indices for array"</p>
  
  <p>Here is my code :</p>
  
  <pre><code>import pandas as pd
  def answer_one():
      energy = pd.read_excel("Energy Indicators.xls")
      energy.drop(energy.index[0,1], axis = 1)
  answer_one()
  </code></pre>