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