Skip to content

using SIMPLE_RENAMER.rename as per the tutorial returns same variable names #5

@leighpfrog

Description

@leighpfrog
acs = ACS5()
male_age_vars = acs.variables.children_of(variable='B01001_002E')
northeast = acs.areas.region('Northeast')
data = acs.tracts(within=northeast, variables=male_age_vars, return_geometry=True)
data = SIMPLE_RENAMER.rename(data)
data

outputs

B01001_003E B01001_004E B01001_005E B01001_006E ... GEO_ID state county tract
0 32 15 24 8 ... 1400000US23001010100 23 001 010100
... ... ... ... ... ... ... ... ... ...

[14704 rows x 29 columns]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions