Data entity
Module superwise.models.data_entity
This module implement DataEntity model
Classes
DataEntity(id=None, dimension_start_ts=None, type=None, name=None, role=None, feature_importance=None, summary=None, secondary_type=None, data_type=None, **kwargs)
data entity model class
Description:
Constructor for DataEntity class
Args:
id
: id if dataentity
dimension_start_ts
:
type
:
name
:
is_dimension
:
role
:
feature_importance
:
summary
: dictionary of summarised data
secondary_type
:
data_type
:
Ancestors (in MRO)
- superwise.models.base.BaseModel
Static methods
df_to_list(data_entities_df)
Description:
Get data entities dataframe and return list of DataEntity objects
Args:
data_entities_df
: pandas df of data entities
Return:
List[DataEntity] - list of DataEntity objects
list_to_df(data_entities)
Description:
Get list of DataEntity objects and return them as pandas dataframe
Args:
data_entities
: List[DataEntity] - list of DataEntity objects
Return:
pandas df of data entities
DataEntitySummary(idx=None, summary=None)
summary model class
Description:
Constructer for DataEntitySummary class
Args:
idx
: id of dataEntity
summary
: summary of dataentity (dict)
Ancestors (in MRO)
- superwise.models.base.BaseModel