Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Empty dash table

$
0
0

df1 = pd.DataFrame({“Symbol”:[‘alpha’,‘beta’,‘gamma’],“Currency”:[‘USD’,‘USD’,‘USD’],“Price unit”:[‘1’,‘1’,‘1’],
“Trade Unit”:[‘Kg’,‘Kg’,‘Kg’], “Lot Size”:[‘15’,‘1’,‘1’],“Tick Size”:[‘1’,’.01’,’.01’]})

dash_table.DataTable(id =“Con_specs”,columns = [{“name”:x ,“id”: ‘specs_{}’.format(i)} for i,x in enumerate(df1.columns)],
data = df1.to_dict(‘records’))

image

Not able to find the table content in the cell. Please let me know where I am doing wrong.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles