I need help in finding the sequence pattern in the column, example
colour --- match
blue no match
orange no match
orange no match
blue no match
orange no match
orange no match
orange **match**
In the above dataframe, we have 2 columns colour and match. I need to find the sequence in the Column "Color" it should find last 3 value(blue, orange, orange , orange(current cell)) in the column and if it match then need to update the next column match. I am looking this code to work in python code.
Aucun commentaire:
Enregistrer un commentaire