publish.features()
Creates Rasgo Features from a dict
Parameters
Return Object
Sample Usage
features_dict = rasgo.prepare_feature_set_dict(600)
print('My Dict:', features_dict)
features_dict = {
'sourceTable': 'pandas_by_DATE_YEAR_2021_02_05_00_42',
'features': [
{
'columnName': 'NEXT_MONTH',
'dataType': 'integer',
'displayName': 'PANDAS_NEXT_MONTH_2021_02_05_00_42',
'description': 'Feature that contains PANDAS_NEXT_MONTH_2021_02_05_00_42 data',
'tags': ['test'],
'attributes': [{'FeatureKey': 'FeatureValue'}]
},
{
'columnName': 'NEXT_MONTH',
'dataType': 'integer',
'displayName': 'PANDAS_NEXT_MONTH_2021_02_05_00_42',
'description': 'Feature that contains PANDAS_NEXT_MONTH_2021_02_05_00_42 data'
}
],
'dimensions': [
{
'columnName': 'YEAR',
'dataType': 'integer',
'granularity': 'test'
},
{
'columnName': 'DATE',
'dataType': 'string',
'granularity': 'day'
}
],
'tags': ['test', '02/05/2021', 'Pandas'],
'attributes': [{'Key1': 'Value1'}],
'status': 'Production'
}
features = rasgo.publish.features(features_dict)
print(features)Best Practices / Tips
Last updated