ipumspy.ddi.VariableDescription.read

classmethod VariableDescription.read(elt, ddi_namespace)[source]

Read an XML description of a variable.

Parameters
  • elt (Element) – xml element tree from parsed extract ddi

  • ddi_namespace (str) – ddi namespace that says what the xmlns is for the file

Return type

VariableDescription

Returns

VariableDescription object