i'm wondering if there is a better way to slice a data frame with different criteria for the same variable.
actually i'm looking at this example:
df_european_union = df[(df['Country'] == 'Austria')|(df['Country'] == 'Belgium')|(df['Country'] == 'Bulgaria')...
this works just fine but i don't think it's close to best practice.
already tried approaches like:
df_european_union = df[(df['Country'] == ['Austria','Belgium', ... ]]
or
eu = ['Austria','Belgium','Bulgaria',...] df_european_union = df[(df['Country'] == eu]