acs_download
¶To download an ACS PUMS file for a state simply call the function get_data()
from acs_download
import acs_download as acs
C:\Users\sanchez\AppData\Local\Continuum\anaconda3\envs\census\lib\site-packages\tqdm\autonotebook\__init__.py:14: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console) " (e.g. in jupyter console)", TqdmExperimentalWarning)
acs.get_data?
Signature: acs.get_data( year: Union[int, str] = '2017', survey: Union[str, int] = '1-Year', person_or_household: str = 'person', state: str = 'California', download_path: str = '../data/raw/', extract: bool = True, extract_path: str = '../data/interim/', ) Docstring: Builds URL and downloads ACS 1-Year or 5-Year state PUMS estimates into a specified folder (defaults to ../data/raw/). File: c:\users\sanchez\appdata\local\continuum\anaconda3\envs\census\lib\site-packages\acs_download\__init__.py Type: function
acs.get_data(
year = 2017,
state = 'Ohio',
)
Downloading at ..\data\raw\csv_poh.zip.
HBox(children=(IntProgress(value=0, max=22684), HTML(value='')))
Download complete! Extracting to ..\data\interim\ACS_2017\oh Files extracted successfully at ..\data\interim\ACS_2017\oh
acs_download
assumes a project structure as such:
.
├── data
│ ├── interim
│ ├── processed
│ └── raw
└── notebooks <- Jupyter Notebooks
So unless you specify a download_path
, acs_download
will assume there is a ../data/raw/
folder directory.
Next notebook: Analyzing PUMS Data