huber.py
from sklearn.linear_model import LinearRegression

# Extract x and y data
x = df['x'].values.reshape(-1, 1)
y = df['y'].values

# Fit the linear regression model
model = LinearRegression()
model.fit(x, y)

# Predict y values based on the model
y_pred = model.predict(x)