def reorganize_columns(df):
    """
    Rearranges the columns in the data frame

    Parameters
    ----------
    df : pandas data frame
        The building benchmarking data for a city

    Returns
    ----------
    df
        The modified data frame
    """

    fixed_column_order = ['BuildingID',
                          'Year',
                          'City',
                          'State',
                          'ZIPCode',
                          'BuildingType',
                          'PrimaryPropertyUse',
                          'YearBuilt',
                          'PropertyGFA(sf)',
                          'SiteEUI(kBtu/sf)',
                          'SourceEUI(kBtu/sf)',
                          'SiteEUIWN(kBtu/sf)',
                          'SourceEUIWN(kBtu/sf)'
                          ]

    revised_column_order = []
    for i in range(len(fixed_column_order)):
        if fixed_column_order[i] in df.columns:
            revised_column_order.append(fixed_column_order[i])
        else:
            continue

    df = df[revised_column_order]

    return df