一个关于Python的

关于Python3-D plots的,想和大家一起探讨,非常感谢

img

参考代码如下,望采纳

import csv
import matplotlib.pyplot as plt

# Open the CSV file and read the profits
with open('company sales data.csv', 'r') as csv_file:
    reader = csv.reader(csv_file)
    profits = []
    next(reader)  # skip the header row
    for row in reader:
        profits.append(float(row[1]))

# Create a histogram of the profits
plt.hist(profits, bins=20)
plt.xlabel('Profit range (in dollars)')
plt.ylabel('Actual Profit (in dollars)')
plt.title('Profit data')
plt.show()