typeerror expected x and y to have same length savgol code example Example: typeerror expected x and y to have same length savgol >>> np.ravel(x) array([3, 1, 4, 1, 5, 9])