I posted this question on Stack Overflow at the below link however I thought I would post here as well:
Essentially I have a montecarlo function that I built that returns a pandas dataframe with “n” iterations. I am trying to turn the results of a .describe() on that dataframe into an interactive data table. When I update the slider it will rerun the function with the specified number of iterations, and update the data table with the new .describe() results.
It all seems to be working, except for some reason the measure names, which are based on the index, disappear upon updating the slider (all the values update accordingly). All code that I am using is in the link - any help would be greatly appreciated!