我想知道我是否可以用Orca从Python客户端的DolphinDB共享表中读取数据。我以前使用DolphinDB Python API通过运行DolphinDB脚本来读取共享表,方式如下:
import dolphindb as ddb
s=ddb.session()
s.connect("127.0.0.1", 8848)
df=s.run("select * from tb") #tb refers to the table name which I have already defined on DolphinDB Server但检索到的数据存储在pandas DataFrame中,而不是Orca DataFrame.And中,将其转换为Orca DataFrame需要耗费时间。那么,Orca中是否有一个函数可以将数据从DOlphinDB共享表加载到Orca对象中呢?
发布于 2020-03-15 11:15:09
import dolphindb.orca as orca
orca.connect("localhost",8848,"admin","123456")
tb = orca.read_table('dfs://db','tb')https://stackoverflow.com/questions/60449022
复制相似问题