ACS Data Users Group

 View Only
  • 1.  Download All Census Tracts for a State

    Posted 04-22-2024 03:47 PM

    Is it no longer possible to download all census tracts for a state at once from data.census.gov?

    I thought the first box that use to come up was:
    All Census Tracts within Florida?

    Now it's just giving me a list of counties and making me go into each county to select all their Census Tracts.



  • 2.  RE: Download All Census Tracts for a State

    Posted 04-22-2024 04:11 PM

    Hey Doug,

    Let's talk about this. The ACS tables Summary files are a way to generate this data.

    https://www.census.gov/programs-surveys/acs/data/summary-file.html

    They have the standard summary levels (summary level 140 is State-County-Census Tract)

    It is a trivial programming task to loop through all the tables on the ACS FTP site, extract the geographies for a specific table, and save the output.

    I'd be happy to walk you through it. Send me an email

    Adam



  • 3.  RE: Download All Census Tracts for a State

    Posted 04-25-2024 11:07 AM

    If you have access to a Python environment, this is easy to do programatically. First

    pip install censusdis

    and then you can run code like the following:

    import censusdis.data as ced from censusdis.datasets import ACS5 from censusdis import states
    # The variable I want to download. VARIABLE_MEDIAN_INCOME = "B19013_001E" # This is the call to download the data we want: df_co_tracts = ced.download( # Data set and vintage. dataset=ACS5, vintage=2022, # The variables to download. Adding 'NAME' can # be useful for debugging and sanity checking # the results. download_variables=['NAME', VARIABLE_MEDIAN_INCOME], # Geographies we want data for: all tracts in all # counties in Colorado state=states.CO, county='*', tract='*' )

    This will get the data you want into a pandas data frame. From there you can save it to a file, analyze it, or whatever else you like. Choose a different data set, vintage, and/or variables as needed for your application.

    For more details, see github.com/.../censusdis



  • 4.  RE: Download All Census Tracts for a State

    Posted 05-09-2024 07:23 AM

    Hi all,

    When I go to advanced search in data.census.gov, I do see the option to select all Census tracts in a state, such as for Arizona or Florida. I took a screenshot below. Can you describe your steps where you do not see this option?



  • 5.  RE: Download All Census Tracts for a State

    Posted 05-09-2024 01:22 PM

    And, just like that it's back.

    Exactly the box I was looking for and hoping to see.

    But, it did disappear on me for a time.