ipumspy.api.Variable#
- class ipumspy.api.Variable(name, preselected=False, case_selections=<factory>, attached_characteristics=<factory>, data_quality_flags=False, adjust_monetary_values=False)[source]#
IPUMS variable object to include in a
MicrodataExtractobject.- Parameters:
name (
str) – IPUMS variable namecase_selections (
Optional[Dict[str,List]]) – Case selection specificationsattached_characteristics (
Optional[List[str]]) – Attach characteristics specificationsdata_quality_flags (
Optional[bool]) – Flag to include the variable’s associated data quality flags if they existadjust_monetary_values (
Optional[bool]) – Flag to include the variable’s associated inflation-adjusted equivalent, if possible
Attributes
adjust_monetary_valuesFlag to include the variable's associated inflation-adjusted equivalent, if possible
data_quality_flagsFlag to include the variable's associated data quality flags if they exist
preselectedWhether the variable is preselected.
nameIPUMS variable name
case_selectionsCase selection specifications
attached_characteristicsAttach characteristics specifications
Methods