def METHOD_NAME(df, column=None):
    """This needs to happen after you remove whitespace from names"""
    # set column name
    column = 'country' if column is None else column
    country_groups = [
        'ASEAN-5',
        'Australia and New Zealand',
        'Advanced economies',
        'Africa (Region)',
        'Asia and Pacific',
        'Caribbean',
        'Central America',
        'Central Asia and the Caucasus',
        'East Asia',
        'Eastern Europe',
        'Emerging and Developing Asia',
        'Emerging and Developing Europe',
        'Emerging market and developing economies',
        'Euro area',
        'Europe',
        'European Union',
        'Latin America and the Caribbean',
        'Major advanced economies (G7)',
        'Middle East (Region)',
        'Middle East and Central Asia',
        'North Africa',
        'North America',
        'Other advanced economies',
        'Pacific Islands',
        'South America',
        'South Asia',
        'Southeast Asia',
        'Sub-Saharan Africa',
        'Sub-Saharan Africa (Region)',
        'West Bank and Gaza',
        'Western Europe',
        'Western Hemisphere (Region)',
        'World',
        '©IMF, 2022',
    ]
    # remove country_groups
    filt = ~df[column].isin(country_groups)
    df = df.loc[filt]
    return df