bug fix ...
This commit is contained in:
parent
089c1d1d76
commit
79c5f3ff25
|
@ -244,7 +244,7 @@ class Components :
|
||||||
writer = factory.instance(**_args['store'])
|
writer = factory.instance(**_args['store'])
|
||||||
_df = _args['data']
|
_df = _args['data']
|
||||||
if _schema :
|
if _schema :
|
||||||
columns = []
|
columns = _df.columns.tolist
|
||||||
for _item in _schema :
|
for _item in _schema :
|
||||||
name = _item['name']
|
name = _item['name']
|
||||||
_type = str
|
_type = str
|
||||||
|
@ -266,7 +266,7 @@ class Components :
|
||||||
columns.append(name)
|
columns.append(name)
|
||||||
writer.write(_df,schema=_schema,table=args['from'])
|
writer.write(_df,schema=_schema,table=args['from'])
|
||||||
else:
|
else:
|
||||||
writer.write(_df[columns],table=args['from'])
|
writer.write(_df,table=args['from'])
|
||||||
|
|
||||||
def finalize(self,args):
|
def finalize(self,args):
|
||||||
"""
|
"""
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ import sys
|
||||||
def read(fname):
|
def read(fname):
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
args = {"name":"data-maker",
|
args = {"name":"data-maker",
|
||||||
"version":"1.4.6",
|
"version":"1.4.7",
|
||||||
"author":"Vanderbilt University Medical Center","author_email":"steve.l.nyemba@vanderbilt.edu","license":"MIT",
|
"author":"Vanderbilt University Medical Center","author_email":"steve.l.nyemba@vanderbilt.edu","license":"MIT",
|
||||||
"packages":find_packages(),"keywords":["healthcare","data","transport","protocol"]}
|
"packages":find_packages(),"keywords":["healthcare","data","transport","protocol"]}
|
||||||
args["install_requires"] = ['data-transport@git+https://dev.the-phi.com/git/steve/data-transport.git','tensorflow==1.15','pandas','pandas-gbq','pymongo']
|
args["install_requires"] = ['data-transport@git+https://dev.the-phi.com/git/steve/data-transport.git','tensorflow==1.15','pandas','pandas-gbq','pymongo']
|
||||||
|
|
Loading…
Reference in New Issue