School/task_171121/task_171121.py
Kristofers Solo dba6dee19e Updated .venv
2021-11-22 17:35:39 +02:00

16 lines
323 B
Python

# Author - Kristiāns Francis Cagulis
# Date - 22.11.2021
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('company_sales_data.csv')
x = range(len(df["month_number"]))
plt.plot(x, df["total_profit"])
plt.xticks(x, df["month_number"])
plt.xlabel("Month number")
plt.ylabel("Total profit")
plt.show()