I have this situation where I thave strings like 1k, 300k, 500k_cleaned and replaced, etc.
I wish to use regex package to replace k with 000 and delete the rest of the characters.
My code always throws errors:
renamed=re.sub(r"\b[k]\b",'000',df_VSS[i][0])
This is the line of code I have and I would be grateful for any help.