E14
Anonymous
python
11/30/2021 4:53 PM
388 B
16
Indexable
import numpy as np
from matplotlib import pyplot as plt
arr = np.loadtxt("IN.csv", dtype=int)
# find max
print(max(arr))
# plot line graph to see peaks and save graph to file
plt.xlabel("Day")
plt.ylabel("Cases")
plt.plot(arr)
plt.savefig("E14.png")
plt.show()
plt.close()
Editor is loading...