+1 (229) 255-3712
glass
pen
clip
papers
heaphones

  

Using only matplotlib, numpy and csv libraries in python :

Write a program that :

1. Extract data from .csv file (the csv file is in attachment)

2. Calculate the coefficients of the linear regression with numpy.polyfit() and numpy.poly1d(), then use matplotlib.plot()

3. Display the data (scatter plot) on the graph with plt.plot(…)

4. Display the linear regression on the graph

5. Configure the graph (figure title, axis title, legend, grid)

6. Display the graph with plt.show()