Tidy up column definitions

master
Dan Howe 5 years ago
parent e2e58adb34
commit 0e16048d2e

@ -31,9 +31,9 @@ app.layout = html.Div([
dash_table.DataTable( dash_table.DataTable(
id='datatable-row-ids', id='datatable-row-ids',
columns=[ columns=[
{'name': i, 'id': i, 'deletable': True} for i in df.columns {'name': col, 'id': col} for col in df.columns
# omit the id column # omit the id column
if i != 'id' if col != 'id'
], ],
data=df.to_dict('records'), data=df.to_dict('records'),
editable=True, editable=True,

Loading…
Cancel
Save