I have a DataFrame below:
col1
Numb10
Numb11
Numb12
Numb7
Numb8
How can I sort with number order:
col1
Numb7
Numb8
Numb10
Numb11
Numb12
I tried but got error TypeError: cannot convert the series to <class 'int'>.
df.sort_values(by = "col1", key = (lambda x: int(x[4:])))
Update with one missing in col1