Importing csv files instead of using load_house_data

In the C1_W2_Lab03_Feature_Scaling_and_Learning_Rate_Soln instead of using:

load the dataset

X_train, y_train = load_house_data()
X_features = [‘size(sqft)’,‘bedrooms’,‘floors’,‘age’]

if i want to load data from a csv file, what changes will I have to make in the code?

Perhaps this would be helpful:

If I have data in houseprice.csv (containing around 1000 examples) instead of the 4 examples given in the lab exercise, and I import the dataset using pd.read_csv('houseprice.csv') into the Jupyter notebook, what changes do I need to make in the existing lab code to ensure that the rest of the code works correctly?

If the only difference is in the number of examples, then ideally you would not need to make any changes, because the code hopefully will automatically use all of the data.