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(
id='datatable-row-ids',
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
if i != 'id'
if col != 'id'
],
data=df.to_dict('records'),
editable=True,

Loading…
Cancel
Save