ipumspy.api.UsaExtract.__init__#
- UsaExtract.__init__(samples, variables, description='My IPUMS USA extract', data_format='fixed_width', data_structure={'rectangular': {'on': 'P'}}, **kwargs)[source]#
Defining an IPUMS USA extract.
- Parameters:
samples (
Union
[List
[str
],List
[Sample
]]) – list of IPUMS USA sample IDsvariables (
Union
[List
[str
],List
[Variable
]]) – list of IPUMS USA variable namesdescription (
str
) – short description of your extractdata_format (
str
) – fixed_width and csv supporteddata_structure (
Dict
) – nested dict with “rectangular” or “hierarchical” as first-level key. “rectangular” extracts require further specification of “on” : <record type>. Default {“rectangular”: “on”: “P”} requests an extract rectangularized on the “P” record.