Skip to content
New issue

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

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

Already on GitHub? # to your account

explore pygris migration/integration #154

Open
ljwolf opened this issue Dec 21, 2022 · 1 comment
Open

explore pygris migration/integration #154

ljwolf opened this issue Dec 21, 2022 · 1 comment

Comments

@ljwolf
Copy link
Member

ljwolf commented Dec 21, 2022

@walkerke's pygris package was just released. Something that I was quite concerned before about in Python is the fragmentation of effort across many different census data packages, so I think that we need to explore consolidating work around a few better-supported packages.

So, I'm hoping to explore pygris to see how/whether we can offer migration and/or integration examples of the two packages.

@walkerke
Copy link

Hi @ljwolf! Thanks for the ping and checking out pygris. It would be great to brainstorm ways to collaborate. A few thoughts:

  • Regarding a migration case, I see value in pygris as a standalone geometry-focused package independent of Census data-focused packages. This is the space tigris occupies on the R side, and a lot of people use tigris in non Census data projects. My original motivation for pygris (aside from wanting to learn Python development) was Rafael's work on parallel R/Py implementations in geobr.
  • I do have a couple data helpers in the package (Census APIs and LODES, I've mulled over BLS as well) for users who want some data to merge to their shapes without leaving the package. I don't envision these as full-featured however and I recommend cenpy in the package documentation (and the function docstring itself) for users who want a full-featured, Pythonic interface to the Census APIs.

Regarding integration, I think there could be some interesting directions to look at. One potential area is pygris as an optional geometry engine for cenpy, similar to how I have it set up in tidycensus. As pygris uses the shapefiles from the FTP server instead of the TigerWeb API, it has a few nice features:

It might also be interesting to explore some updates to the detailed usage vignette that show how the packages could work together. For example, censusapi and tigris work quite well together on the R side.

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

No branches or pull requests

2 participants