shakaz@shakaz_·Aug 29, 2022Replying to @Aella_Girlyou wanna use &, not | & for both east/west, and use | for either east or west1
Aella@Aella_Girl·Aug 29, 2022Replying to @shakaz_gives me Unable to coerce list of <class 'pandas.core.series.Series'> to Series/DataFrame1
shakaz@shakaz_·Aug 29, 2022Replying to @Aella_Girli think your syntax was a bit funky, try: allUS = filtered_df[(filtered_df['Unitedstateswest'] == 1) & (filtered_df[Unitedstateseast'] == 1)]11
Aella@Aella_GirlReplying to @Aella_Girl and @shakaz_wait is this actually doing wht i want, there's no 'loc' in there3:07 AM · Aug 29, 2022
shakaz@shakaz_·Aug 29, 2022Replying to @Aella_Girlyou 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 rows1