Skip to content

Commit

Permalink
fix Basic_Stats_II_Percents key
Browse files Browse the repository at this point in the history
  • Loading branch information
brissend committed Jan 30, 2024
1 parent 348d088 commit 1085f74
Show file tree
Hide file tree
Showing 2 changed files with 584 additions and 157 deletions.
20 changes: 4 additions & 16 deletions Lessons/Lesson22_Basic_Stats_II_Percents.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
"source": [
"# Load the dataset of house prices in Ames, and convert to\n",
"# a data frame format so it's easier to view and process\n",
"ames_df = pd.DataFrame(housing['data'])\n",
"ames_df = pd.DataFrame(housing['data'], columns = housing['feature_names'])\n",
"ames_df['SalePrice'] = housing.target\n",
"ames_df"
]
},
Expand Down Expand Up @@ -175,7 +176,7 @@
},
"outputs": [],
"source": [
"# Determine number of tracts that bound the Charles River two ways:\n",
"# Determine number of homes sold normally two ways:\n",
"# (1) with the query function\n"
]
},
Expand Down Expand Up @@ -218,19 +219,6 @@
"# Now calculate the percentage of houses sold normally.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {},
"colab_type": "code",
"id": "AJZKng3Bs7Vd"
},
"outputs": [],
"source": [
"import numpy as np"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -264,7 +252,7 @@
"id": "RLZ-k3L7s7Vq"
},
"source": [
"What percentage of tracts have a median price **between** $200,000 and $500,000?"
"What percentage of houses have a sale price **between** $200,000 and $500,000?"
]
},
{
Expand Down
Loading

0 comments on commit 1085f74

Please sign in to comment.