Matplotlib.pyplot.hist() very slow

前端 未结 8 2013
孤独总比滥情好
孤独总比滥情好 2021-01-11 11:37

I\'m plotting about 10,000 items in an array. They are of around 1,000 unique values.

The plotting has been running half an hour now. I made sure rest of the code wo

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-11 12:06

    If you are working with pandas, make sure the data you passed in plt.hist() is a 1-d series rather than a dataframe. This helped me out.

提交回复
热议问题