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
Show replies
Replying to and
Seen on Stack Overflow: "In order to combine Boolean indices, you need to surround them with parentheses and use the bitwise operators &, |, or ~." (note syntax): So: allUS = filtered_df.loc[(filtered_df['Unitedstateswest']==1) | (filtered_df['Unitedstateseast'] == 1)]