From 3aee3e2caea14465ee878cc577098659c90a9303 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 10 Aug 2022 10:56:40 -0500 Subject: [PATCH] bug fix: schema --- data/maker/prepare/__init__.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/data/maker/prepare/__init__.py b/data/maker/prepare/__init__.py index d589c17..8da73c3 100644 --- a/data/maker/prepare/__init__.py +++ b/data/maker/prepare/__init__.py @@ -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 - # - if self._schema : - r = {} - for _item in self._schema : - r[_item['name']] = r[_item['type']] - self._schema = r + # 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.df = _args['data'] if 'sql' not in _args :