Graceyit

Results 2 comments of Graceyit

I am really sorry that I reply you so late. And I have tried again the code you gave me but I do not know if I am right.It seems...

OK pili, here is the code ``` from pyecharts import Bar tf=df.groupby(['title'])['favorite'].mean().reset_index().sort_values("favorite",ascending=False)[:15] tt=df.groupby(['title'])['thumb'].mean().reset_index().sort_values("thumb",ascending=False)[:15] attr=tf.title v1=tf.favorite v2=tt.thumb bar=Bar('article by favorite and thumb') bar.add('by favorite',attr,v1,xaxis_interval=0, xaxis_rotate=30,mark_line=['average']) bar.add('by thumb',attr,v2,xaxis_interval=0, xaxis_rotate=30,mark_line=['average']) bar ``` but...