I want to filter the rows based on CPD(object data type) range:
Input:
+----+-----------+----------+--------+------------+-------------+
| | cpd_range | accuracy | n_size | model | frontend_id |
+----+-----------+----------+--------+------------+-------------+
| 0 | >55 | 32.86 | 140 | TFT_no_lag | 30667 |
| 1 | 50-55 | 31.43 | 35 | TFT_no_lag | 30667 |
| 2 | 45-50 | 21.43 | 28 | TFT_no_lag | 30667 |
| 3 | 40-45 | 34.29 | 35 | TFT_no_lag | 30667 |
| 4 | 35-40 | 14.29 | 70 | TFT_no_lag | 30667 |
| 5 | 30-35 | 25.00 | 56 | TFT_no_lag | 30667 |
| 6 | 25-30 | 28.57 | 49 | TFT_no_lag | 30667 |
| 7 | 20-25 | 19.05 | 105 | TFT_no_lag | 30667 |
| 8 | 15-20 | 20.06 | 329 | TFT_no_lag | 30667 |
| 9 | 10-15 | 19.37 | 630 | TFT_no_lag | 30667 |
| 10 | 5-10 | 18.07 | 1981 | TFT_no_lag | 30667 |
| 11 | 0-5 | 26.74 | 9982 | TFT_no_lag | 30667 |
+----+-----------+----------+--------+------------+-------------+
Final Output:
+---+-----------+----------+--------+------------+-------------+
| | cpd_range | accuracy | n_size | model | frontend_id |
+---+-----------+----------+--------+------------+-------------+
| 0 | >55 | 32.86 | 140 | TFT_no_lag | 30667 |
| 1 | 50-55 | 31.43 | 35 | TFT_no_lag | 30667 |
| 2 | 45-50 | 21.43 | 28 | TFT_no_lag | 30667 |
| 3 | 40-45 | 34.29 | 35 | TFT_no_lag | 30667 |
| 4 | 35-40 | 14.29 | 70 | TFT_no_lag | 30667 |
| 5 | 30-35 | 25.00 | 56 | TFT_no_lag | 30667 |
| 6 | 25-30 | 28.57 | 49 | TFT_no_lag | 30667 |
| 7 | 20-25 | 19.05 | 105 | TFT_no_lag | 30667 |
| 8 | 15-20 | 20.06 | 329 | TFT_no_lag | 30667 |
| 9 | 10-15 | 19.37 | 630 | TFT_no_lag | 30667 |
+---+-----------+----------+--------+------------+-------------+
I want to remove the rows with CPD_slot_range < 10, but the column is of object type, so I have to do this through regular expressions, but I'm new to regular expressions, can you please guide for this.