Untitled

mail@pastecode.io avatar
unknown
python
20 days ago
280 B
1
Indexable
Never
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("invoice.csv")
plt.hist(df["customer_age"], bins=10, edgecolor="white", color="darkviolet")
plt.xlabel("Customer Age")
plt.ylabel("Quantity of customer")
plt.title("Histogram of Customer Ages")
plt.show()
Leave a Comment