datamade / census

A Python wrapper for the US Census API.
BSD 3-Clause "New" or "Revised" License
632 stars 137 forks source link

Census Metadata function? #55

Open mr-fuller opened 6 years ago

mr-fuller commented 6 years ago

Is there any interest in a function to retrieve metadata (variables, names, labels, concepts, etc.) for datasets? I've started working on something here.

toolness commented 4 years ago

Hey, I know it's been over two years since you posted this issue, but as a complete census newbie, I would really like something like this! I ended up having to scour the internet in order to get this metadata. I'd love to both integrate your code into this package and also update the README examples so they use your new functionality instead of hard-coding them.

mr-fuller commented 4 years ago

Have you looked at cenpy(https://cenpy-devs.github.io/cenpy/api.html)? It looks like that package might have some of these exploratory features. For ACS data, it looks like they have a way to return a dataframe of variables: https://cenpy-devs.github.io/cenpy/generated/cenpy.products.ACS.variables.html#cenpy.products.ACS.variables

toolness commented 4 years ago

Oh thanks, I'll take a look at this! Although from a very brief glance it looks like cenpy is dependent on pandas, which I'm not using for my current project. Hmmmm.