I want to select both the rows 489-493 and the rows 503-504 in this dataframe. I can slice them separately by df.iloc[489:493] and df.iloc[503:504], respectively, but am not sure how to combine them?
I have tried using df[(df.State =='Washington') & (df.State=='Wisconsin')] , however, I'm getting an empty dataframe with the column labels only. if I do only one of them, eg. df[df.State =='Washigton'] this works fine, to produce 5 rows with Washington as expected. So how can I combine them?