I have a dataset (dataTrain.csv & dataTest.csv) in .csv file with this format:
Temperature(K),Pressure(ATM),CompressibilityFactor(Z) 273.1,24.675,0.806677258
That's correct you need to use .values.reshape(-1,2)
In addition if you want to know the coefficients and the intercept of the expression:
CompressibilityFactor(Z) = intercept + coefTemperature(K) + coefPressure(ATM)
you can get them with:
Coefficients = model.coef_ intercept = model.intercept_