title: Removing "row index" in pandas
body: <p>I have the below dataframe wherein I am trying to remove the first column which is the default column assigned in pandas dataframe/series. How do I get rid of that?</p>
  
  <p><a href="https://i.stack.imgur.com/hQcK0.png" rel="nofollow noreferrer">Actual Result</a></p>
  
  <p>Actual result should be without the first column which has the "0".
  I have tried using reset index with drop but nothing works.</p>
  
  <p>Here is my code which sends a mail with the dataframe output.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>def send_email(index):
      fromaddr = ""
      toaddr = ""
      msg = MIMEMultipart()
      msg['From'] = fromaddr
      msg['To'] = toaddr
      msg['Subject'] = "Timestamp Alarm"
      df1 = df.iloc[index,1:]
      new = df1
  
      body = """\
  &lt;html&gt;
    &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;
      {0}
    &lt;/body&gt;
  &lt;/html&gt;
  """.format(pd.DataFrame(new).T.to_html())
      part1 = MIMEText(body,'html')
      msg.attach(part1)
      server = smtplib.SMTP("smtp.gmail.com", 587)
      server.starttls()
      server.login('***', '**')
      server.sendmail('','',msg.as_string())
      server.quit()</code></pre>
  </div>
  </div>
  </p>