ipumspy.api.extract_to_dict#

class ipumspy.api.extract_to_dict(extract)[source]#

Convert an extract object to a dictionary (usually to write to a file). If multiple extracts are specified, return a dict object.

Parameters:

extract (Union[BaseExtract, List[BaseExtract]]) – A submitted IPUMS extract object or list of submitted IPUMS extract objects

Return type:

Dict[str, Any]

Returns:

The extract(s) specified as a dictionary