ipumspy.ddi.VariableDescription#
- class ipumspy.ddi.VariableDescription(id, name, rectype, codes, start, end, label, description, concept, vartype, notes, shift)[source]#
Individual variables are described in the DDI. These are representations of those descriptions as dataclasses.
Attributes
numpy_typeThe Numpy type of this variable.
pandas_typeThe pandas type of this variable.
pandas_type_efficientIn contrary to self.pandas_type, self.pandas_type_efficient doesn't implement "Int64" type but "numpy.float64" for integer type.
python_typeThe Python type of this variable.
idvariable id (this is the same as its name)
namevariable name
rectyperecord type
codesa dictionary of codes and value labels
startvariable's starting column in the extract data file
endvariable's final column in the extract data file
labelvariable label
descriptionvariable description
conceptIPUMS variable group
vartypevariable data type
notesnotes about this variable from the ddi
shiftnumber of implied decimal places
Methods