statsmodels.iolib.foreign.StataReader.dataset¶
-
StataReader.
dataset
(as_dict=False)[source]¶ Returns a Python generator object for iterating over the dataset.
- Parameters
- as_dictbool,
optional
If as_dict is True, yield each row of observations as a dict. If False, yields each row of observations as a list.
- as_dictbool,
- Returns
Notes
If missing_values is True during instantiation of StataReader then observations with StataMissingValue(s) are not filtered and should be handled by your application.