问题描述
stars = [9.7,9.7,9.5,9.4,9.3,9.2,9.2]
episodes = ['The Last One','The One Where Everybody Finds Out','The Last One','The One with the Embryos','The One with the Prom Video','The One with the Rumor','The One with the Proposal','The One with the Videotape',"The One with Monica and Chandler's Wedding: Part 2","The One with Ross's Wedding"]
sns.barplot(stars,episodes,palette='inferno')
plt.xlabel('Stars')
plt.ylabel('Episodes')
plt.title('Top 10 Episodes according to Stars')
plt.xlim(9,10)
plt.show()
您好,开发人员,请帮助我! 为什么在第一栏中出现意外的行?
解决方法
第一个栏中的行是因为情节列表中有两个元素,而最后一个值是