Closed wholmgren closed 8 years ago
The data_labels dictionary has been replaced by the variables dictionary in init that doesn't use indexing. This resulted in a modelvariables and queryvariables attribute in the models along with a dataframe_variables attribute.
I would like to find something better for the current
data_labels
pattern. Here's how it currently works:The
ForecastModel
class defines thecolumns
class attribute as:Then, the subclasses define something like:
This relies on
idx
and the ordering ofcolumns
, which seems fragile. How can we make this more robust? I might prefer manually creating thedata_labels
dict in the__init__
method of each class.Also,
data_labels
ordata_mapping
?If
data_mapping
, that implies that the values could be any kind of function, as in:and that you'd need a separate
request_variables
or similar attribute/parameter.