minor bug fix, got fixed in data-transport returning properly formatted meta data
This commit is contained in:
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,15 +46,15 @@ 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 :
|
||||
# r[_item['name']] = r[_item['type']]
|
||||
# self._schema = r
|
||||
# self._schema = r
|
||||
|
||||
self.df = _args['data']
|
||||
if 'sql' not in _args :
|
||||
|
|
Loading…
Reference in New Issue