In the dataframe below, the first column is the index with occasional non-unique values.
| | col1 |
|---|------|
| A | 120 |
| A | 90 |
| A | 80 |
| B | 80 |
| B | 50 |
| C | 120 |
| D | 150 |
| D | 150 |
I want to select rows so that I can get the following dataframe.
| | col1 |
|---|------|
| A | 120 |
| B | 80 |
| C | 120 |
| D | 150 |
Basically, I just want to keep the first row associated with a unique value of the index.