Making a linear regression sample with one pandas single serie, it works like:
lm = LinearRegression() X = df_pred[\'nivel_ed\'] y = df_pred[\'crimes\'] X = X.va