0

I have a very small pandas DataFrame with two columns.

    status          count
0   early           2
1   on_time         2
2   late            1
3   Incomplete      9

I am trying to create a pie chart using pandas_bokeh library, but I am having some trouble with the legend and I can't quite figure out why. Here is the code for the chart:

df2.plot_bokeh.pie(
    x="status",
    y="count",
    legend="top_right",
    title="Task completion times")

This gives me the following graph:

enter image description here

As you can see, the legend shows __x__values. How do I change this so that it shows the different status values from my dataframe??

Thanks in advance.

1 Answers1

0

this is actually a bug that I can reproduce using the standard example here. I opened an issue: https://github.com/PatrikHlobil/Pandas-Bokeh/issues/78