I have a graph that is being built with a loop that appends several go.Bar()'s to a ‘traces’ array.
I’m then returning this ‘traces’ array as the value to the ‘data’ key required by ‘figure’.
I’d like to use a pandas series in order to create the name for each trace, the elements in the series look something like this:
0 Indirect costs, 1 Direct costs, 2 Capital expenditures
how can i make each trace name be one of the unique elements in the series?