I need convert pandas dataframe.
I have dataframe:
data10SGD01|AA169|10SGD01|AA170I need to get:
data10SGD01AA169|10SGD01AA170I try:
df['data'] = df['data'].str.replace('|(?=AA)', '', regex=True)This regex does not work. Where is the mistake?
Version of pandas == 2.0.3