I need to replace in a dataframe the text:
J***ge by Jorge, I have tried many solutions but I always get this error
/usr/lib/python3.7/sre_parse.py in _parse(source, state, verbose, nested, first) 646 if item[0][0] in _REPEATCODES: 647 raise source.error("multiple repeat", --> 648 source.tell() - here + len(this)) 649 if item[0][0] is SUBPATTERN: 650 group, add_flags, del_flags, p = item0
error: multiple repeat at position 2
This is a summary of the DataFrame
It's like 5000 records
import pandas as pd
colors = {'first_name': ['J***ge','Luis','Peter','Doug'],
'second_name': ['Chavez','Ma**ani','Jhons','Leake']
}
df = pd.DataFrame(colors, columns= ['first_name','second_name'])
print (df)