plot里面必须是shape为(xxx, )
array经过flatten后是(xxx, ),矩阵经过flatten后还是(xxx, yyy)
def plot_trendline(x, y, y_bar, n):
x = np.array(x.reshape((-1,1))
plot里面必须是shape为(xxx, )
array经过flatten后是(xxx, ),矩阵经过flatten后还是(xxx, yyy)
def plot_trendline(x, y, y_bar, n):
x = np.array(x.reshape((-1,1))