ipumspy.api.extract_from_dict#

class ipumspy.api.extract_from_dict(dct)[source]#

Convert an extract that is currently specified as a dictionary (usually from a file) into a BaseExtract object. If multiple extracts are specified, return a List[BaseExtract] objects.

Parameters:

dct (Dict[str, Any]) – The dictionary specifying the extract(s)

Return type:

Union[BaseExtract, List[BaseExtract]]

Returns:

The extract(s) specified by dct