Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leighpfrog opened this issue Nov 3, 2023 · 1 comment

Comments

@leighpfrog
Copy link

leighpfrog commented Nov 3, 2023

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]

@singerep
Copy link
Owner

Have you had any luck with this issue since you posted? Unfortunately, I was not able to recreate locally.

Also, were you using a Jupyter Notebook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants