发布于 2021-04-25 19:41:42
这就是你要找的东西吗?
import matplotlib.pyplot as plt
def histograms(t):
_min = min(t['salary'])
_max = max(t['salary'])
bins = int((_max - _min) / 1000) # dividing the salary range in bins of 1000 each
plt.hist(t['salary'], bins = bins)
histograms(df)https://stackoverflow.com/questions/67246261
复制相似问题