pygris icon indicating copy to clipboard operation
pygris copied to clipboard

Use US Census shapefiles in Python (port of the R tigris package)

Results 17 pygris issues
Sort by recently updated
recently updated
newest added

This PR simply removes dependencies that are not needed: By requiring GeoPandas, NumPy, Pandas and Shapely are already required. RTree, Fiona and PiP are not really dependencies of Pygris, and...

Adds the ability to enter state FIPS as integers and not run into string handler issues. uses IF and isinstance() to check for input types then handles appropriately. Closes Issue...

When running the command "pygris.congressional_districts(state='LA', cache=True)", the module fails out with the following error: Using the default year of 2024 Cached file may be corrupted. Downloading again... HTTP download failed,...

This adds `pre-commit` to handle linting and formatting automatically. Some common ruff rules are added. Read more [here](https://docs.astral.sh/ruff/rules/)

```py ca_od = get_lodes( state="CA", year=2022, lodes_type="od", cache=True, return_geometry=True, agg_level="block" ) ``` fails with the error: HTTP download failed, trying FTP as fallback... Downloading tl_2020_06_tabblock20.zip from Census FTP... Traceback (most...

Almost all of the functions to get geometry data have a 'cb' parameter to select between TIGER files and cartographic boundary files. However geography types that only have one option...

the following does not work for years 2021,2022,2023,2024 line 685 in enumeration_units.py elif year >= 2020: url = f"https://www2.census.gov/geo/tiger/GENZ{year}/shp/cb_{year}_us_zcta520_500k.zip"