【发布时间】:2020-06-05 17:04:07
【问题描述】:
x = np.log(df_pitcher['adj_salary_filled'][df_pitcher['year'] == 2010])
y = np.log(df_pitcher['adj_salary_filled'][df_pitcher['year'] == 2015])
z = np.log(df_pitcher['adj_salary_filled'][df_pitcher['year'] == 2019])
_ = plt.hist(x, bins=20, alpha=0.5, label='2010 Season')
_ = plt.hist(y, bins=20, alpha=0.5, label='2015 Season')
_ = plt.hist(z, bins=20, alpha=0.5, label='2019 Season')
_ = plt.xlabel('Salaries')
_ = plt.ylabel('Frequency')
_ = plt.legend()
_ = plt.title('Distribution of Salaries for Pitchers')
_ = plt.show()
它基本上是返回我的工资日志,无论如何让它返回实际的工资金额?我正在记录日志,因为它有助于显示实际分布。
【问题讨论】:
-
“实际工资金额”是什么意思?
-
这只是球员本赛季的薪水
标签: python matplotlib data-visualization data-science