我用你的代码为什么ts_code创建出来的在pands中是object在数据库里 double格式
如何根据空表用python API建立空的分区数据库,如下面的dolphindb脚本:
login("admin","123456")
dbPath="dfs://yearRange"
if (existsDatabase(dbPath))
dropDatabase(dbPath)
yearRange=date(2005.01M + 12*0..25)
db=database(dbPath,RANGE,yearRange)
cols = `ts_code`suspend_date`suspend_type
types = `STRING`DATETIME`INT
tbl = db.createPartitionedTable(table(1:0,cols,types),`tbl,`suspend_date)
如何在python api中不用s.run进行实现