<p>我有一个如下的数据表</p>
<pre><code> | season title rating
-- + ------ --------------------- ------
0 | 10 The last one 9.7
1 | 1 The pilot 5.6
2 | 4 The one where estelle 7.8
3 | 10 The last one 9.7
4 | 3 The thumb 10
[5 rows x 3 columns]
</code></pre>
<p>这里第0行和第3行是重复的,我想保留第3行的a边</p>
<p>在本例中,我尝试将其作为-</p>
<pre class="lang-py prettyprint-override"><code>DT_X[f.season!=10, :]
</code></pre>
<p>它过滤两个观测值,如下所示:</p>
<pre><code> | season title rating
-- + ------ --------------------- ------
0 | 1 The pilot 5.6
1 | 4 The one where estelle 7.8
2 | 3 The thumb 10
[3 rows x 3 columns]
</code></pre>
<p>但是,我想有一个第一个观察,即索引为0并过滤掉第三行</p>
<p>如何在pydatatable中实现它?如何使用数据表行的索引检索数据表行</p>