Why I am having ValueError in this Linear Regression?
There are most likely missing values in your data, those missing values are encoded as NaN.

The most common solutions for missing data are:


Drop the instances/rows that have any missing values.
Impute the missing values.