ipumspy.api.extract.save_extract_as_json#

class ipumspy.api.extract.save_extract_as_json(extract, filename)[source]#

Convenience method to save an IPUMS extract definition to a json file.

Parameters:
  • extract (Union[BaseExtract, List[BaseExtract]]) – IPUMS extract object or list of IPUMS extract objects

  • filename (str) – Path to json file to which to save the IPUMS extract object(s)