I have a data frame (other_team_df) of premier league teams and I want to drop rows where the home team is either: Arsenal, Chelsea, Liverpool, Tottenham, Man City or Man United.
When I run the code below, del_row_index has length=1596 and other_team_df has 5321 rows. So im expecting 3725 rows to be left after the drop. However, I only get back 72 rows and I'm not sure why
del_row_index=other_team_df[(other_team_df['HomeTeam']=='Arsenal') |(other_team_df['HomeTeam']=='Chelsea')|
(other_team_df['HomeTeam']=='Liverpool') |(other_team_df['HomeTeam']=='Tottenham')|
(other_team_df['HomeTeam']=='Man City')| (other_team_df['HomeTeam']=='Man United')].index
other_team_df.drop(del_row_index)