ipumspy.api.BaseExtract.select_cases#

BaseExtract.select_cases(variable, values, general=True)[source]#

A method to update existing IPUMS Extract Variable objects to select cases with the specified values of that IPUMS variable.

Parameters:
  • variable (Union[Variable, str]) – a Variable object or a string variable name

  • values (List[Union[int, str]]) – a list of values for which to select records

  • general (bool) – set to False to select cases on detailed codes. Defaults to True.