polyfit
Also written: np.polyfit, slope, intercept
A NumPy function that finds the straight line that best fits the points and returns its slope (how much y rises per 1 of x) and intercept (y where x is 0). It supplies the trend line on the café scatter plot.