I have a datatable as below,
| 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]
Here row 0 and 3 are duplicated, I would like to keep the 3rd row a side.
In this example, i tried it as -
DT_X[f.season!=10, :]
It filters the both 2 observations as below,
| 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]
But, i would like to have a first observation which is having 0 index and filtering out the 3rd row.
How can it be achieved in pydatatable ? how to retrieve datatable rows using their indices ?.