-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add use_chardet extra to solve requests import error * bump requests lower bound for compatibility w/chardet extra * pull rectypes into VariableDescriptions * add hierarchical extract test files * parse extract rectypes from ddi * added tests for rectype at extract and var level * grab rectype id var and rectype key var from ddi * _read_hierarchical_microdata method * retain only records of the relevant type in _read_hierarchical_microdata * return dict-style hierarchical data from read_microdata() * make read_hierarchical_microdata() its own method * both types of hierarchical returns work, but they are both slow * maintain original data types when creating a single hierarchical data frame * check data types for rectangular extracts * add tests for reading hierarchical extracts * test subset functionality * raise an error if RECTYPE isn't included in subset list for hierarchical extracts * use read_microdata_chunked to read hierarchical extracts * remove as_dict arg from read_microdata * default api_version = v2 * oops v2 -> 2 * snake_case -> camelCase * re-generated expired test extract - needed b/c extract request schema changes required re-recording vcrpy cassettes * extract request schema updates * re-record vcrpy cassetttes; all tests passing * tests for API v2 extract definition specifications * support beta and v2 schemas in build() method * fix key error in test extract jsons * test cli with v2 extract schema * paint it black * warn around old api versions; stop supporting beta extract schema * test NotImplementedError for unsupported api versions * run readers tests against v2 extract definition files * api version travels with extract and is assigned at submit time if not specified in extract definition * api_version moves with CpsExtract objects too * Sample and Variable data classes * grab collection id and api version from the extract response * black * api version needs to be specified as integer * helps if you add the test data * Attach characteristics (#83) * attach characteristics * attach characteristics * remove Variable and Sample from_* classmethods * enforce acceptable case for Variable and Sample * docstrings for attach_characteristics * pull variable feature updating logic into private method and add test * enable add_data_quality_flags and select_cases * fix extract_api_version bug * New data formats (#84) support hierarchical extract requests * More api v2 support (#85) * IpumsiExtract class * disallow duplicate samples and varaibles * retrieve_previous_extracts -> get_previous_extracts * get_extract_by_id() convenience method * raise warnings when API returns a modified extract definition * warn when returned extract definition has been modified and support for extract-level data quality flag flag * include variable notes in VariableDescription objects * limit->pageSize param * remove define_extract_from_ddi() * retrieve sample ids in the api/core module instead of utilities * ipums microdata extract api -> ipums api, remove beta links * add IPUMS I to table * remove obsolete import * undocument removed methods * more docstrings * add Variables and Samples to API reference * allow a list for add_data_quality_flags * more docs * default to dict return from read_hieararchical_microdata() * add hierarchical reader to the toctree * still more docs stuff * docs about hierarchical files * purged -> expired * there is no extract resubmission, only extract submission * switch positions of args in get_extract_by_id() to be in line with others * docs update for resubmit removal * better error messaging for expired extract object passed to download_extract() * page generator * make get_pages private and add extract_history iterator * type hints * correctly handle nested dicts in extract definitions with variable-level features * docs for extract histories * print statement clean up * case_select_who example * version bump and change log updates * black
- Loading branch information
Showing
54 changed files
with
477,105 additions
and
3,918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.