dataframe无法设定index?

dataframe
标签: #<Tag:0x00007f312d92d140>

(QuantJW) #1

def bigquant_run(input_1, input_2, input_3):

lst=[{“clm0”:1,“clm1”:2,“clm2”:3},
{“clm0”:4,“clm1”:5,“clm2”:6},
{“clm0”:7,“clm1”:8,“clm2”:9}]
idx=[“idx0”,“idx1”,“idx2”]
t1=pd.DataFrame(lst, index=idx)
ds = DataSource.write_df(t1)

return Outputs(data_1=ds, data_2=None, data_3=None)

输出结果为何无法显示index??

39


(lu0817) #2

这个应该是,平台打印不显示index信息,但是应该还是有的。如果无法设定,index应该是显示0,1,2