✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Adding new row to a datatable with increased index

I am trying to add a new row to a datatable which I am reading from a Pandas dataframe as in here: https://dash.plot.ly/datatable/editable but I have an index column and it’s value needs to be increased when I click ‘Add new row’ button. So on ‘Add new row’ click, a new row has to show with only index column populated with +1 form the previous value and all other column values have to be NaN. Any ideas?

1 Like