censusdis / censusdis

censusdis is a Python package for discovering, loading and analyzing, U.S. Census demographic, economic, and geographic data and metadata. It is designed to be intuitive and Pythonic, giving users access to the full collection of data and maps the U.S. Census publishes via their APIs.
Other
58 stars 11 forks source link

Understand `long` type in metadata; Tests should accept `NAME` and `GEOID` columns from server side. #269

Closed vengroff closed 3 months ago

vengroff commented 3 months ago

Fixes #267. Fixes #268.

vengroff commented 3 months ago

This PR deals with a server-side change that began to roll out on May 24, 2024. As of now, it appears that some server instances have the new behavior and some still have the old. It does not appear predictable which one you get. It is up to the load balancer, I suspect.

The two key changes are:

  1. Metadata for many variables changed the type from int to long. So we had to make a small change in the type-casting logic that converts the strings that come back in json.
  2. NAME and GEO_ID come back as variables in some (all?) requests even if we don't ask for them. This mostly affected integration tests.