How to subset dataframe by multiple rows with same value?

Ah sorry I missed the second error in your command - you also have a dot before the opening brackets, it should be df[ instead of df.[

1 Like