I have the following issue where I have some data that has a specific combination of characters that I need to remove, example:
| data_col | 
|---|
| *.test1.934n | 
| test1.tedsdh | 
| *.test1.test.sdfsdf | 
| jhsdakn | 
| *.test2.test | 
What I need to remove is all the instances that exist for the "*." character combination in the dataframe. So far I've tried:
df['data_col'].str.replace('^*.','')
However when I run the code it gives me this error:
re.error: nothing to repeat at position 1
Any advise on how to fix this? Thanks in advance.
 
    