# create numpy arrays for the x (independent) and y (dependent) #variables x = syn_data.x.values.reshape(-1,1) y = syn_data.y.values.reshape(-1,1)