Home > other >  Why pandas, pyecharts pie chart in the painting not to come out?
Why pandas, pyecharts pie chart in the painting not to come out?

Time:10-12

Data for a dataframe, contains two columns (the number of countries and regions,)

In pyecharts Pie draw Pie

Alist=data [' countries and regions'] tolist ()
Blist=data [' number '] tolist ()
Clist=[list (z) for z in zip (alist, blist)]
Then clist as pie chart data sources, can draw a pie chart,

But
Elist=[]
For I in range (data. Shape [0]) :
Dlist=[]
Dlist=[data. Loc [I] [' countries and regions'], data. The loc [I] [' number ']]
Elist. Append (dlist)
Then elist as pie chart data source, how to draw out the pie chart??

I see clist and elist to print the contents of all the same, but what is the different cause elist cannot draw pie????? Please prawns for help?
  • Related