results
EnDataFrame
¶
Bases: BaseModel
Represents a data model for a DataFrame-like structure with enhanced time series data.
This class is designed to manage and store time series data associated with a specific name and a corresponding index of datetime values.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
Name of the data frame. |
index |
list[datetime]
|
List of datetime objects representing the index of the data frame. |
data |
list[EnTimeSeries]
|
List of EnTimeSeries objects representing the time series data. |
Source code in backend/app/results/model.py
EnTimeSeries
¶
Bases: BaseModel
Represents a time series data model with a name and corresponding data points.
This class provides a structure for storing time series data which includes a descriptive name and a list of numerical data points. It can be used for various time-based data analysis and storage requirements.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
The name of the time series. |
data |
list[float]
|
A list of numerical data points representing the time series. |
Source code in backend/app/results/model.py
ResultDataModel
¶
Bases: GeneralDataModel
Represents a specialized data model for storing results.
Inherits from the GeneralDataModel
and is used specifically
for storing a collection of EnDataFrame
objects. This class
helps organize and manage the result data in a structured manner.
Attributes:
Name | Type | Description |
---|---|---|
items |
list[EnDataFrame]
|
A collection of |