I have a dataframe like this.
I am trying to remove the string which presents in substring column.
Main substring
Sri playnig well cricket cricket
sri went out NaN
Ram is in NaN
Ram went to UK,US UK,US
My expected outupt is,
Main substring
Sri playnig well cricket
sri went out NaN
Ram is in NaN
Ram went to UK,US
I tried df["Main"].str.reduce(df["substring"])
but not working, pls help.