I have a df dataframe with one column named "Move", and I want to keep only the rows for which Move is "Right" or "Left".
But this doesn't work:
df = df[df.Move == 'Right' or df.Move == 'Left']
neither does this:
moves = ['Right','Left']
df = df[df.Move in moves]
Would you have any idea of how to do something like that?