Plotting Pandas DataFrames in to Pie Charts using matplotlib

后端 未结 3 1057
既然无缘
既然无缘 2020-12-18 01:05

Is it possible to print a DataFrame as a pie chart using matplotlib? This has instructions for plotting lot of chart types including bar, histogram, scatter plo

3条回答
  •  别那么骄傲
    2020-12-18 01:34

    import matplotlib.pyplot as plt
    plt.pie(DataFrame([1,2,3]))
    

    seems to work as expected. If the DataFrame has more than one column, it will raise.

提交回复
热议问题