I have a dataframe:
id value
4_french:k_15 10
87_nov:k_82 82
11_nov:k_10 10
1_italian:k_11 9
I want to rename values in column id which have nov:k_
giving them new id k_10
or k_82
so desired result must be:
id value
4_french:k_15 10
k_82 82
k_10 10
1_italian:k_11 9
How to do that? I know about str.replace()
but how to keep number at the end?