minor bug fix, got fixed in data-transport returning properly formatted meta data

dev
Steve Nyemba 2 years ago
parent 3aee3e2cae
commit 4013fb8fd5

@ -425,7 +425,7 @@ class Generator (Learner):
_schema = self.get_schema()
_schema = [{'name':_item.name,'type':_item.field_type} for _item in _schema]
# _schema = [{'name':_item.name,'type':_item.field_type} for _item in _schema]
_df = self.format(_df,_schema)
_log = [{"name":_schema[i]['name'],"dataframe":_df[_df.columns[i]].dtypes.name,"schema":_schema[i]['type']} for i in np.arange(len(_schema)) ]
self.log(**{"action":"consolidate","input":_log})

@ -46,10 +46,10 @@ class Input :
:param store data-store parameters/configuration
:param sql sql query that pulls a representative sample of the data
"""
# self._schema = _args['schema'] if 'schema' in _args else {}
# #
# # schema data should be in a hash map for these purposes
# #
self._schema = _args['schema'] if 'schema' in _args else {}
#
# schema data should be in a hash map for these purposes
#
# if self._schema :
# r = {}
# for _item in self._schema :

Loading…
Cancel
Save