How do I calculate the gradient of a best fit line in python? I have 2 arrays x and y that I plotted, and then made a best fit line using polyfit (found an example online).