pandas drop row based on index vs ix : <p>I'm trying to drop pandas dataframe row based on its index (not location).</p>

<p>The data frame looks like </p>

<pre><code>                      DO  
129518  a developer and   
20066   responsible for   
571     responsible for   
85629   responsible for   
5956    by helping them   
</code></pre>

<p>(FYI: "DO" is a column name)</p>

<p>I want to delete the row where its index is 571 so I did:</p>

<pre><code>df=df.drop(df.index[571])
</code></pre>

<p>then I check
    df.ix[571]</p>

<p>then what the hell it's still there!</p>

<p>So I thought "ok, maybe index and ix are different!"</p>

<pre><code>In [539]: df.index[571]
17002
</code></pre>

<p>My question is</p>

<p>1) What is index? (compared to ix)</p>

<p>2) How do I delete the index row 571 using ix?</p>
