gram of profit
profit = Supermarket_Data['利润']
### set the number of bins
num_bins = 20
n, bins, patches = plt.hist(profit, num_bins, density=1, facecolor='g')
### add a best fit line
from scipy.stats import norm
y = norm.pdf(bins, profit.mean(), profit.std())
plt.plot(bins, y, 'b--')
### add labels and title
from matplotlib.font_manager import FontProperties
ChineseFont1 = FontProperties('SimHei'
还行吧
你好,我是有问必答小助手。为了技术专家团更好地为您解答问题,烦请您补充下(1)问题背景详情,(2)您想解决的具体问题,(3)问题相关代码图片或者报错信息。便于技术专家团更好地理解问题,并给出解决方案。
您可以点击问题下方的【编辑】,进行补充修改问题。