I'm using Plotly to create a pie chart, and I need to get values for the pie chart. So, for example, I have a dataframe looks like this:
df = pd.DataFrame(np.array([[1, 2, 3]]),
columns=['a', 'b', 'c'])
And it will give something like:
a b c
0 1 2 3
I'm trying to get the values of row 0 from b to c, which it should be:
[2, 3]
How can I achieve this? I tried so far:
df[['b', 'c']].values.tolist()
And it gives:
[[2, 3]]
And above does not work for the Plotly values...