From 3e5ac851243b33ee15d9cbdc05c33a62575ccf1a Mon Sep 17 00:00:00 2001 From: Denys Kochev Date: Thu, 24 Jul 2025 22:29:06 +0200 Subject: [PATCH] Fix incorrect assigned variable, remove unnecessary import of pandas --- .../UPDATED_House_price_predictions.ipynb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Chapter_03_Linear_Regression/UPDATED_House_price_predictions.ipynb b/Chapter_03_Linear_Regression/UPDATED_House_price_predictions.ipynb index 0d5c24e..83a201c 100644 --- a/Chapter_03_Linear_Regression/UPDATED_House_price_predictions.ipynb +++ b/Chapter_03_Linear_Regression/UPDATED_House_price_predictions.ipynb @@ -233,7 +233,6 @@ } ], "source": [ - "import pandas as pd\n", "file_path = 'Hyderabad.csv'\n", "data = pd.read_csv(file_path)\n", "data.head()" @@ -365,7 +364,7 @@ "source": [ "# Predict prices for a range of Area values to plot the regression line\n", "area_range = np.linspace(X.min(), X.max(), 100).reshape(-1, 1)\n", - "predicted_prices = model.predict(area_range)\n", + "predicted_prices = simple_model.predict(area_range)\n", "\n", "# Plot the original data points\n", "plt.scatter(X, y, color='blue', label='Data Points')\n",