I have DataFrame having column with Chat Transcript.
ID Chat
1 P1: Please call me soon P2 - will call you
2 P2: Please call me soon P1 - will call you
I want to create a new column with yes/No or 1/0 if chat has pattern "call me soon" only between P1 & P2 But not between P2 & P1.
Out put will be like
ID Chat Call me soon
1 P1: Please call me soon P2 - will call you Yes
2 P2: Please call me soon P1 - will call you No
I need to do it in python. Please suggest a appropriate method.