lr = LinearRegression()
lr.fit(X_train, y_train)
running the code gives me error, where as copy pasting the code from a .pynb file does not give me error. Please help mee
I want to write codes and run without error. I have tried this like 4-5 times, writing code myself and it is not working.