statsmodels.datasets.utils.Dataset#
- class statsmodels.datasets.utils.Dataset(**kw)[source]#
Container for a statsmodels dataset.
A dict subclass whose keys are also exposed as attributes. Instances are constructed by dataset loading functions such as process_pandas and get_rdataset, which determine which keys/attributes are set. Datasets returned by
load_pandasfunctions typically definedata,endog,exog,names,endog_nameandexog_name; datasets returned by get_rdataset additionally definetitle,packageandfrom_cache. Whendatacan be cast to float, araw_dataattribute holding that numeric version is set automatically.- Parameters:
- **kw
Keyword arguments used to populate the dataset’s keys and attributes.