I have pandas data frame in which I need to replace one part of the vale with another value
for Example. I have
HF - Antartica
HF - America
HF - Asia
out of which I'd like to replace ony the HF -
part
thus the result would be
Hi Funny Antartica
Hi Funny America
Hi Funny Asia
I have tried pd.replace()
but it doesnt work as I need only one part of the string replaced, rather than the entire string
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…