Conversation

This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
Replying to
i think your syntax was a bit funky, try: allUS = filtered_df[(filtered_df['Unitedstateswest'] == 1) & (filtered_df[Unitedstateseast'] == 1)]
1
1
Replying to
you only really need .loc if you're selecting row-wise. You were only selecting column-wise to create a boolean mask, then using the boolean mask to select relevant rows
1