saundankarro
saundankarro

Reputation: 7

Plotting a pie chart from pandas dataframe with one pie chart visual not properly displayed

I have a dataframe that I'm using to create multiple pie charts via subplots (sample below as it's almost 159 rows).

   generation      type  count
0           1    Poison     33
1           1     Water     32
2           1    Normal     22
3           1    Flying     19
4           1     Grass     14
5           1    Ground     14
6           1   Psychic     14
7           1       Bug     12
8           1      Fire     12
9           1      Rock     11
10          1  Electric      9
11          1  Fighting      8
12          1     Fairy      5
13          1       Ice      5
14          1    Dragon      3
15          1     Ghost      3
16          1     Steel      2

However, when I run the following code:

gen_types.plot.pie(subplots=True ,legend=False, layout=(3,3))

I get an issue with the last pie chart visual not properly forming - Pie Chart

Upvotes: 0

Views: 23

Answers (0)

Related Questions