How to analyse datasets using Linear Regression: Read the CSV in datframe. clean the data if required , like null values , missing values or converting or encoding. study the data and find input and output variables how they are linked together.