diff --git a/lab-p6/lab-p6.ipynb b/lab-p6/lab-p6.ipynb index 22696932da6bcfa3855571844cfe6ca0b7ca92df..0bceb70ed0c1c1ba94852a47cdcaf92bc9a2af0c 100644 --- a/lab-p6/lab-p6.ipynb +++ b/lab-p6/lab-p6.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4de52395", + "id": "e874bf6a", "metadata": { "cell_type": "code", "deletable": false, @@ -23,10 +23,10 @@ "metadata": { "editable": false, "execution": { - "iopub.execute_input": "2023-10-11T16:08:39.384816Z", - "iopub.status.busy": "2023-10-11T16:08:39.383813Z", - "iopub.status.idle": "2023-10-11T16:08:39.731264Z", - "shell.execute_reply": "2023-10-11T16:08:39.730249Z" + "iopub.execute_input": "2023-10-12T16:35:27.526790Z", + "iopub.status.busy": "2023-10-12T16:35:27.525789Z", + "iopub.status.idle": "2023-10-12T16:35:27.670937Z", + "shell.execute_reply": "2023-10-12T16:35:27.670937Z" } }, "outputs": [], @@ -45,6 +45,19 @@ "# Lab-P6: Real-world Datasets (Power Generators in WI)" ] }, + { + "cell_type": "markdown", + "id": "d32678a2", + "metadata": { + "deletable": false, + "editable": false + }, + "source": [ + "<h2 style=\"color:red\">Warning (Note on Academic Misconduct):</h2>\n", + "\n", + "Under any circumstances, **no more than two students are allowed to work together on a project** as mentioned in the course policies. If your code is flagged by our code similarity detection tools, **both partners will be responsible** for sharing/copying the code, even if the code is shared/copied by one of the partners with/from other non-partner student(s). Note that each case of plagiarism will be reported to the Dean of Students with a zero grade on the project. **If you think that someone cannot be your project partner then don’t make that student your lab partner.**" + ] + }, { "cell_type": "markdown", "id": "6926bf1f", @@ -141,10 +154,10 @@ "id": "9d3acf35", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:39.738266Z", - "iopub.status.busy": "2023-10-11T16:08:39.738266Z", - "iopub.status.idle": "2023-10-11T16:08:39.745888Z", - "shell.execute_reply": "2023-10-11T16:08:39.745888Z" + "iopub.execute_input": "2023-10-12T16:35:27.675943Z", + "iopub.status.busy": "2023-10-12T16:35:27.674943Z", + "iopub.status.idle": "2023-10-12T16:35:27.681764Z", + "shell.execute_reply": "2023-10-12T16:35:27.680759Z" } }, "outputs": [], @@ -161,10 +174,10 @@ "id": "289f8744", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:39.751902Z", - "iopub.status.busy": "2023-10-11T16:08:39.750899Z", - "iopub.status.idle": "2023-10-11T16:08:39.760278Z", - "shell.execute_reply": "2023-10-11T16:08:39.759264Z" + "iopub.execute_input": "2023-10-12T16:35:27.684766Z", + "iopub.status.busy": "2023-10-12T16:35:27.684766Z", + "iopub.status.idle": "2023-10-12T16:35:27.688792Z", + "shell.execute_reply": "2023-10-12T16:35:27.688792Z" } }, "outputs": [], @@ -185,10 +198,10 @@ "id": "86dfacfb", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:39.765277Z", - "iopub.status.busy": "2023-10-11T16:08:39.764276Z", - "iopub.status.idle": "2023-10-11T16:08:40.015345Z", - "shell.execute_reply": "2023-10-11T16:08:40.014332Z" + "iopub.execute_input": "2023-10-12T16:35:27.691798Z", + "iopub.status.busy": "2023-10-12T16:35:27.691798Z", + "iopub.status.idle": "2023-10-12T16:35:27.708900Z", + "shell.execute_reply": "2023-10-12T16:35:27.708900Z" } }, "outputs": [], @@ -211,17 +224,6 @@ "The variable `csv_data` stores the contents of the file `power_generators.csv` as a **list of lists** (i.e., `csv_data` is a **list**, and the elements of this list are **lists** themselves). In the next subsection, you will learn to access data stored within this data structure." ] }, - { - "cell_type": "markdown", - "id": "ba0aef96", - "metadata": {}, - "source": [ - "<h2 style=\"color:red\">Warning (Note on Academic Misconduct):</h2>\n", - "\n", - "Under any circumstances, **no more than two students are allowed to work together on a project** as mentioned in the course policies. If your code is flagged by our code similarity detection tools, **both partners will be responsible** for sharing/copying the code, even if the code is shared/copied by one of the partners with/from other non-partner student(s). Note that each case of plagiarism will be reported to the Dean of Students with a zero grade on the project. **If you think that someone cannot be your project partner then don’t make that student your lab partner.** \n", - "<font color = \"red\">Project partners must submit only one copy of their project on Gradescope, but they must include the names of both partners.</font>" - ] - }, { "cell_type": "markdown", "id": "5a9fde4d", @@ -256,10 +258,10 @@ "id": "fd70e628", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.024347Z", - "iopub.status.busy": "2023-10-11T16:08:40.023349Z", - "iopub.status.idle": "2023-10-11T16:08:40.032332Z", - "shell.execute_reply": "2023-10-11T16:08:40.031319Z" + "iopub.execute_input": "2023-10-12T16:35:27.712906Z", + "iopub.status.busy": "2023-10-12T16:35:27.712906Z", + "iopub.status.idle": "2023-10-12T16:35:27.718402Z", + "shell.execute_reply": "2023-10-12T16:35:27.718402Z" }, "tags": [] }, @@ -274,7 +276,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fb44fb49", + "id": "0abe9719", "metadata": { "deletable": false, "editable": false @@ -301,10 +303,10 @@ "id": "ec047e7e", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.363156Z", - "iopub.status.busy": "2023-10-11T16:08:40.363156Z", - "iopub.status.idle": "2023-10-11T16:08:40.369941Z", - "shell.execute_reply": "2023-10-11T16:08:40.368917Z" + "iopub.execute_input": "2023-10-12T16:35:27.731956Z", + "iopub.status.busy": "2023-10-12T16:35:27.731956Z", + "iopub.status.idle": "2023-10-12T16:35:27.735540Z", + "shell.execute_reply": "2023-10-12T16:35:27.735540Z" }, "tags": [] }, @@ -334,10 +336,10 @@ "id": "66b5752b", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.375939Z", - "iopub.status.busy": "2023-10-11T16:08:40.374934Z", - "iopub.status.idle": "2023-10-11T16:08:40.382538Z", - "shell.execute_reply": "2023-10-11T16:08:40.381520Z" + "iopub.execute_input": "2023-10-12T16:35:27.739546Z", + "iopub.status.busy": "2023-10-12T16:35:27.738546Z", + "iopub.status.idle": "2023-10-12T16:35:27.743526Z", + "shell.execute_reply": "2023-10-12T16:35:27.743526Z" }, "tags": [] }, @@ -352,7 +354,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c03ddb05", + "id": "421eccda", "metadata": { "deletable": false, "editable": false @@ -379,10 +381,10 @@ "id": "f89a3a8e", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.399936Z", - "iopub.status.busy": "2023-10-11T16:08:40.398939Z", - "iopub.status.idle": "2023-10-11T16:08:40.409831Z", - "shell.execute_reply": "2023-10-11T16:08:40.408814Z" + "iopub.execute_input": "2023-10-12T16:35:27.754438Z", + "iopub.status.busy": "2023-10-12T16:35:27.753437Z", + "iopub.status.idle": "2023-10-12T16:35:27.759961Z", + "shell.execute_reply": "2023-10-12T16:35:27.759961Z" }, "scrolled": true, "tags": [] @@ -398,7 +400,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0ddc43e4", + "id": "6d95c36e", "metadata": { "deletable": false, "editable": false @@ -425,10 +427,10 @@ "id": "b625f054", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.426160Z", - "iopub.status.busy": "2023-10-11T16:08:40.425160Z", - "iopub.status.idle": "2023-10-11T16:08:40.435611Z", - "shell.execute_reply": "2023-10-11T16:08:40.434597Z" + "iopub.execute_input": "2023-10-12T16:35:27.771360Z", + "iopub.status.busy": "2023-10-12T16:35:27.770360Z", + "iopub.status.idle": "2023-10-12T16:35:27.776917Z", + "shell.execute_reply": "2023-10-12T16:35:27.776917Z" }, "tags": [] }, @@ -444,7 +446,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f1026a63", + "id": "3ff0dcca", "metadata": { "deletable": false, "editable": false @@ -484,10 +486,10 @@ "id": "7c7e1323", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.452615Z", - "iopub.status.busy": "2023-10-11T16:08:40.452615Z", - "iopub.status.idle": "2023-10-11T16:08:40.459298Z", - "shell.execute_reply": "2023-10-11T16:08:40.459298Z" + "iopub.execute_input": "2023-10-12T16:35:27.788422Z", + "iopub.status.busy": "2023-10-12T16:35:27.787421Z", + "iopub.status.idle": "2023-10-12T16:35:27.792662Z", + "shell.execute_reply": "2023-10-12T16:35:27.792662Z" }, "tags": [] }, @@ -502,7 +504,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0d61ed4f", + "id": "8bc5fa9d", "metadata": { "deletable": false, "editable": false @@ -548,10 +550,10 @@ "id": "31a6cbd0", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.474904Z", - "iopub.status.busy": "2023-10-11T16:08:40.473906Z", - "iopub.status.idle": "2023-10-11T16:08:40.482344Z", - "shell.execute_reply": "2023-10-11T16:08:40.481326Z" + "iopub.execute_input": "2023-10-12T16:35:27.803983Z", + "iopub.status.busy": "2023-10-12T16:35:27.803983Z", + "iopub.status.idle": "2023-10-12T16:35:27.808526Z", + "shell.execute_reply": "2023-10-12T16:35:27.808526Z" }, "tags": [] }, @@ -567,7 +569,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2d84c158", + "id": "54d2365e", "metadata": { "deletable": false, "editable": false @@ -611,10 +613,10 @@ "id": "dfe9fded", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.497269Z", - "iopub.status.busy": "2023-10-11T16:08:40.497269Z", - "iopub.status.idle": "2023-10-11T16:08:40.504553Z", - "shell.execute_reply": "2023-10-11T16:08:40.503535Z" + "iopub.execute_input": "2023-10-12T16:35:27.819558Z", + "iopub.status.busy": "2023-10-12T16:35:27.818558Z", + "iopub.status.idle": "2023-10-12T16:35:27.823505Z", + "shell.execute_reply": "2023-10-12T16:35:27.823505Z" }, "tags": [] }, @@ -629,7 +631,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4ab8e226", + "id": "0b2a946d", "metadata": { "deletable": false, "editable": false @@ -669,10 +671,10 @@ "id": "90304fe1", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.518577Z", - "iopub.status.busy": "2023-10-11T16:08:40.518577Z", - "iopub.status.idle": "2023-10-11T16:08:40.526354Z", - "shell.execute_reply": "2023-10-11T16:08:40.525339Z" + "iopub.execute_input": "2023-10-12T16:35:27.834278Z", + "iopub.status.busy": "2023-10-12T16:35:27.833278Z", + "iopub.status.idle": "2023-10-12T16:35:27.838980Z", + "shell.execute_reply": "2023-10-12T16:35:27.838980Z" }, "tags": [] }, @@ -689,7 +691,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e7c1fa5c", + "id": "d95d8fbc", "metadata": { "deletable": false, "editable": false @@ -720,10 +722,10 @@ "id": "089d39bc", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.541220Z", - "iopub.status.busy": "2023-10-11T16:08:40.541220Z", - "iopub.status.idle": "2023-10-11T16:08:40.547954Z", - "shell.execute_reply": "2023-10-11T16:08:40.546941Z" + "iopub.execute_input": "2023-10-12T16:35:27.850659Z", + "iopub.status.busy": "2023-10-12T16:35:27.850659Z", + "iopub.status.idle": "2023-10-12T16:35:27.854835Z", + "shell.execute_reply": "2023-10-12T16:35:27.854835Z" }, "tags": [] }, @@ -762,10 +764,10 @@ "id": "fbef32a2", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.552956Z", - "iopub.status.busy": "2023-10-11T16:08:40.552956Z", - "iopub.status.idle": "2023-10-11T16:08:40.561562Z", - "shell.execute_reply": "2023-10-11T16:08:40.560550Z" + "iopub.execute_input": "2023-10-12T16:35:27.858840Z", + "iopub.status.busy": "2023-10-12T16:35:27.857839Z", + "iopub.status.idle": "2023-10-12T16:35:27.862903Z", + "shell.execute_reply": "2023-10-12T16:35:27.862903Z" }, "scrolled": true, "tags": [] @@ -782,7 +784,7 @@ { "cell_type": "code", "execution_count": null, - "id": "032bde7e", + "id": "d688ace2", "metadata": { "deletable": false, "editable": false @@ -811,10 +813,10 @@ "id": "f7a1191c", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.577547Z", - "iopub.status.busy": "2023-10-11T16:08:40.576544Z", - "iopub.status.idle": "2023-10-11T16:08:40.584262Z", - "shell.execute_reply": "2023-10-11T16:08:40.583247Z" + "iopub.execute_input": "2023-10-12T16:35:27.874508Z", + "iopub.status.busy": "2023-10-12T16:35:27.873506Z", + "iopub.status.idle": "2023-10-12T16:35:27.878592Z", + "shell.execute_reply": "2023-10-12T16:35:27.878592Z" }, "tags": [] }, @@ -830,7 +832,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5415e329", + "id": "700f98bf", "metadata": { "deletable": false, "editable": false @@ -859,10 +861,10 @@ "id": "58a431be", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.600361Z", - "iopub.status.busy": "2023-10-11T16:08:40.599359Z", - "iopub.status.idle": "2023-10-11T16:08:40.607098Z", - "shell.execute_reply": "2023-10-11T16:08:40.606082Z" + "iopub.execute_input": "2023-10-12T16:35:27.889995Z", + "iopub.status.busy": "2023-10-12T16:35:27.888995Z", + "iopub.status.idle": "2023-10-12T16:35:27.894105Z", + "shell.execute_reply": "2023-10-12T16:35:27.894105Z" }, "tags": [] }, @@ -878,7 +880,7 @@ { "cell_type": "code", "execution_count": null, - "id": "875678cc", + "id": "70929f2b", "metadata": { "deletable": false, "editable": false @@ -907,10 +909,10 @@ "id": "dad5ef16", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.621904Z", - "iopub.status.busy": "2023-10-11T16:08:40.621904Z", - "iopub.status.idle": "2023-10-11T16:08:40.631239Z", - "shell.execute_reply": "2023-10-11T16:08:40.630220Z" + "iopub.execute_input": "2023-10-12T16:35:27.904957Z", + "iopub.status.busy": "2023-10-12T16:35:27.903957Z", + "iopub.status.idle": "2023-10-12T16:35:27.908950Z", + "shell.execute_reply": "2023-10-12T16:35:27.908950Z" }, "tags": [] }, @@ -926,7 +928,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b5c67e6c", + "id": "ce76b3c9", "metadata": { "deletable": false, "editable": false @@ -957,18 +959,19 @@ "id": "95c5e77b", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.647535Z", - "iopub.status.busy": "2023-10-11T16:08:40.646532Z", - "iopub.status.idle": "2023-10-11T16:08:40.657312Z", - "shell.execute_reply": "2023-10-11T16:08:40.656293Z" + "iopub.execute_input": "2023-10-12T16:35:27.919818Z", + "iopub.status.busy": "2023-10-12T16:35:27.918819Z", + "iopub.status.idle": "2023-10-12T16:35:27.924981Z", + "shell.execute_reply": "2023-10-12T16:35:27.924981Z" }, "tags": [] }, "outputs": [], "source": [ "# replace the ... with your code\n", - "iron_generators = ... # initialize with the correct value\n", - "for idx in range(...): # loop through all the indices \n", + "\n", + "iron_generators = ... # initialize with the correct initial value\n", + "for idx in range(num_rows): # loop through all the indices \n", " if ...: # use `cell` to determine if the power generator at `idx` is from the correct county\n", " iron_generators += 1 # update the variable appropriately\n", "\n", @@ -978,7 +981,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c5452a49", + "id": "33bc2cdb", "metadata": { "deletable": false, "editable": false @@ -1009,17 +1012,18 @@ "id": "73ab8cfc", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.672651Z", - "iopub.status.busy": "2023-10-11T16:08:40.671651Z", - "iopub.status.idle": "2023-10-11T16:08:40.681249Z", - "shell.execute_reply": "2023-10-11T16:08:40.680230Z" + "iopub.execute_input": "2023-10-12T16:35:27.936335Z", + "iopub.status.busy": "2023-10-12T16:35:27.935335Z", + "iopub.status.idle": "2023-10-12T16:35:27.941805Z", + "shell.execute_reply": "2023-10-12T16:35:27.941805Z" }, "tags": [] }, "outputs": [], "source": [ "# replace the ... with your code\n", - "butter_solar_plants = ... # initialize as an empty list\n", + "\n", + "butter_solar_plants = [] # initialize as an empty list\n", "for idx in range(...): # loop through all the indices \n", " if ...: # use `cell` to determine if the generator at `idx` is operated by the correct entity\n", " butter_solar_plants.append(...) # use `cell` to append the `plant_name` to the list\n", @@ -1030,7 +1034,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d65409c9", + "id": "1f30195c", "metadata": { "deletable": false, "editable": false @@ -1070,10 +1074,10 @@ "id": "e92db997", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.697914Z", - "iopub.status.busy": "2023-10-11T16:08:40.696914Z", - "iopub.status.idle": "2023-10-11T16:08:40.703838Z", - "shell.execute_reply": "2023-10-11T16:08:40.703838Z" + "iopub.execute_input": "2023-10-12T16:35:27.952845Z", + "iopub.status.busy": "2023-10-12T16:35:27.951845Z", + "iopub.status.idle": "2023-10-12T16:35:27.956834Z", + "shell.execute_reply": "2023-10-12T16:35:27.956834Z" }, "tags": [] }, @@ -1122,10 +1126,10 @@ "id": "53d43e13", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.712851Z", - "iopub.status.busy": "2023-10-11T16:08:40.711853Z", - "iopub.status.idle": "2023-10-11T16:08:40.721370Z", - "shell.execute_reply": "2023-10-11T16:08:40.720354Z" + "iopub.execute_input": "2023-10-12T16:35:27.960840Z", + "iopub.status.busy": "2023-10-12T16:35:27.959840Z", + "iopub.status.idle": "2023-10-12T16:35:27.964772Z", + "shell.execute_reply": "2023-10-12T16:35:27.964772Z" }, "tags": [] }, @@ -1140,7 +1144,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e4f163a0", + "id": "c12859bb", "metadata": { "deletable": false, "editable": false @@ -1182,10 +1186,10 @@ "id": "860b716a", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.737334Z", - "iopub.status.busy": "2023-10-11T16:08:40.737334Z", - "iopub.status.idle": "2023-10-11T16:08:40.745054Z", - "shell.execute_reply": "2023-10-11T16:08:40.744040Z" + "iopub.execute_input": "2023-10-12T16:35:27.975572Z", + "iopub.status.busy": "2023-10-12T16:35:27.975572Z", + "iopub.status.idle": "2023-10-12T16:35:27.979870Z", + "shell.execute_reply": "2023-10-12T16:35:27.979870Z" }, "tags": [] }, @@ -1200,7 +1204,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4dd3af40", + "id": "4b071fef", "metadata": { "deletable": false, "editable": false @@ -1260,10 +1264,10 @@ "id": "12a1d13e", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.760155Z", - "iopub.status.busy": "2023-10-11T16:08:40.760155Z", - "iopub.status.idle": "2023-10-11T16:08:40.767051Z", - "shell.execute_reply": "2023-10-11T16:08:40.766035Z" + "iopub.execute_input": "2023-10-12T16:35:27.990830Z", + "iopub.status.busy": "2023-10-12T16:35:27.989829Z", + "iopub.status.idle": "2023-10-12T16:35:27.994781Z", + "shell.execute_reply": "2023-10-12T16:35:27.994781Z" }, "tags": [] }, @@ -1278,7 +1282,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f7ade6b2", + "id": "30ad10c4", "metadata": { "deletable": false, "editable": false @@ -1307,10 +1311,10 @@ "id": "ca2c107b", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.783613Z", - "iopub.status.busy": "2023-10-11T16:08:40.782613Z", - "iopub.status.idle": "2023-10-11T16:08:40.790374Z", - "shell.execute_reply": "2023-10-11T16:08:40.789359Z" + "iopub.execute_input": "2023-10-12T16:35:28.005649Z", + "iopub.status.busy": "2023-10-12T16:35:28.004650Z", + "iopub.status.idle": "2023-10-12T16:35:28.009790Z", + "shell.execute_reply": "2023-10-12T16:35:28.009790Z" }, "tags": [] }, @@ -1325,7 +1329,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d45f9d53", + "id": "2db3adb8", "metadata": { "deletable": false, "editable": false @@ -1352,10 +1356,10 @@ "id": "292835fc", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.806104Z", - "iopub.status.busy": "2023-10-11T16:08:40.806104Z", - "iopub.status.idle": "2023-10-11T16:08:40.815637Z", - "shell.execute_reply": "2023-10-11T16:08:40.814625Z" + "iopub.execute_input": "2023-10-12T16:35:28.020846Z", + "iopub.status.busy": "2023-10-12T16:35:28.019845Z", + "iopub.status.idle": "2023-10-12T16:35:28.027378Z", + "shell.execute_reply": "2023-10-12T16:35:28.027378Z" }, "scrolled": false, "tags": [] @@ -1365,8 +1369,8 @@ "# replace the ... with your code\n", "sheboygan_winter_capacities = ... # initialize as an empty list\n", "for idx in range(...): # loop through all the indices \n", - " if ...: # use `cell` to determine if the generator at `idx` is from Sheboygan\n", - " sheboygan_winter_capacities.append(...) # use `cell` to append the `net_winter_capacity` to the list\n", + " if ...: # use `cell` to determine if the `county` of the generator at `idx` is 'Sheboygan'\n", + " sheboygan_winter_capacities.append(...) # use `cell` to append the `net_winter_capacity` of `idx` to the list\n", "\n", "sheboygan_winter_capacities" ] @@ -1374,7 +1378,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5c441436", + "id": "41127f70", "metadata": { "deletable": false, "editable": false @@ -1425,7 +1429,7 @@ }, { "cell_type": "markdown", - "id": "f5b0df04", + "id": "a67983b6", "metadata": { "deletable": false, "editable": false @@ -1440,10 +1444,10 @@ "id": "e2adc274", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.831402Z", - "iopub.status.busy": "2023-10-11T16:08:40.830404Z", - "iopub.status.idle": "2023-10-11T16:08:40.837351Z", - "shell.execute_reply": "2023-10-11T16:08:40.836340Z" + "iopub.execute_input": "2023-10-12T16:35:28.038317Z", + "iopub.status.busy": "2023-10-12T16:35:28.038317Z", + "iopub.status.idle": "2023-10-12T16:35:28.042123Z", + "shell.execute_reply": "2023-10-12T16:35:28.042123Z" }, "tags": [] }, @@ -1459,7 +1463,7 @@ { "cell_type": "code", "execution_count": null, - "id": "80f567f9", + "id": "9bd1b003", "metadata": { "deletable": false, "editable": false @@ -1486,10 +1490,10 @@ "id": "4f80a8b9", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.852964Z", - "iopub.status.busy": "2023-10-11T16:08:40.852964Z", - "iopub.status.idle": "2023-10-11T16:08:40.860511Z", - "shell.execute_reply": "2023-10-11T16:08:40.859496Z" + "iopub.execute_input": "2023-10-12T16:35:28.052062Z", + "iopub.status.busy": "2023-10-12T16:35:28.052062Z", + "iopub.status.idle": "2023-10-12T16:35:28.056925Z", + "shell.execute_reply": "2023-10-12T16:35:28.056925Z" } }, "outputs": [], @@ -1530,10 +1534,10 @@ "id": "fd0275a4", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.865510Z", - "iopub.status.busy": "2023-10-11T16:08:40.864511Z", - "iopub.status.idle": "2023-10-11T16:08:40.871626Z", - "shell.execute_reply": "2023-10-11T16:08:40.870608Z" + "iopub.execute_input": "2023-10-12T16:35:28.059930Z", + "iopub.status.busy": "2023-10-12T16:35:28.059930Z", + "iopub.status.idle": "2023-10-12T16:35:28.064419Z", + "shell.execute_reply": "2023-10-12T16:35:28.064419Z" }, "tags": [] }, @@ -1551,7 +1555,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1b238c96", + "id": "147de45b", "metadata": { "deletable": false, "editable": false @@ -1578,10 +1582,10 @@ "id": "d160583d", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.886757Z", - "iopub.status.busy": "2023-10-11T16:08:40.885762Z", - "iopub.status.idle": "2023-10-11T16:08:40.894423Z", - "shell.execute_reply": "2023-10-11T16:08:40.893410Z" + "iopub.execute_input": "2023-10-12T16:35:28.075501Z", + "iopub.status.busy": "2023-10-12T16:35:28.074502Z", + "iopub.status.idle": "2023-10-12T16:35:28.079499Z", + "shell.execute_reply": "2023-10-12T16:35:28.079499Z" } }, "outputs": [], @@ -1640,10 +1644,10 @@ "id": "3a6977d7", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.900424Z", - "iopub.status.busy": "2023-10-11T16:08:40.899424Z", - "iopub.status.idle": "2023-10-11T16:08:40.907238Z", - "shell.execute_reply": "2023-10-11T16:08:40.906220Z" + "iopub.execute_input": "2023-10-12T16:35:28.083507Z", + "iopub.status.busy": "2023-10-12T16:35:28.082506Z", + "iopub.status.idle": "2023-10-12T16:35:28.087704Z", + "shell.execute_reply": "2023-10-12T16:35:28.087704Z" }, "tags": [] }, @@ -1683,10 +1687,10 @@ "id": "603cb84d", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.912237Z", - "iopub.status.busy": "2023-10-11T16:08:40.911238Z", - "iopub.status.idle": "2023-10-11T16:08:40.918215Z", - "shell.execute_reply": "2023-10-11T16:08:40.918215Z" + "iopub.execute_input": "2023-10-12T16:35:28.091710Z", + "iopub.status.busy": "2023-10-12T16:35:28.090710Z", + "iopub.status.idle": "2023-10-12T16:35:28.096027Z", + "shell.execute_reply": "2023-10-12T16:35:28.096027Z" }, "tags": [] }, @@ -1703,7 +1707,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a3cd6d70", + "id": "ba5b50ee", "metadata": { "deletable": false, "editable": false @@ -1730,10 +1734,10 @@ "id": "bedf28a0", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.932876Z", - "iopub.status.busy": "2023-10-11T16:08:40.932876Z", - "iopub.status.idle": "2023-10-11T16:08:40.939328Z", - "shell.execute_reply": "2023-10-11T16:08:40.939328Z" + "iopub.execute_input": "2023-10-12T16:35:28.107230Z", + "iopub.status.busy": "2023-10-12T16:35:28.106230Z", + "iopub.status.idle": "2023-10-12T16:35:28.111425Z", + "shell.execute_reply": "2023-10-12T16:35:28.111425Z" }, "tags": [] }, @@ -1750,7 +1754,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9ad7934b", + "id": "0c87519a", "metadata": { "deletable": false, "editable": false @@ -1781,10 +1785,10 @@ "id": "c35846bd", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.953426Z", - "iopub.status.busy": "2023-10-11T16:08:40.953426Z", - "iopub.status.idle": "2023-10-11T16:08:40.960765Z", - "shell.execute_reply": "2023-10-11T16:08:40.960765Z" + "iopub.execute_input": "2023-10-12T16:35:28.121972Z", + "iopub.status.busy": "2023-10-12T16:35:28.121972Z", + "iopub.status.idle": "2023-10-12T16:35:28.128309Z", + "shell.execute_reply": "2023-10-12T16:35:28.128309Z" }, "tags": [] }, @@ -1798,7 +1802,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8f059b99", + "id": "d23c8113", "metadata": { "deletable": false, "editable": false @@ -1827,10 +1831,10 @@ "id": "6a605730", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.974759Z", - "iopub.status.busy": "2023-10-11T16:08:40.973757Z", - "iopub.status.idle": "2023-10-11T16:08:40.983084Z", - "shell.execute_reply": "2023-10-11T16:08:40.982067Z" + "iopub.execute_input": "2023-10-12T16:35:28.139653Z", + "iopub.status.busy": "2023-10-12T16:35:28.138653Z", + "iopub.status.idle": "2023-10-12T16:35:28.145407Z", + "shell.execute_reply": "2023-10-12T16:35:28.145407Z" }, "tags": [] }, @@ -1844,7 +1848,7 @@ { "cell_type": "code", "execution_count": null, - "id": "41529b6f", + "id": "acb12d7c", "metadata": { "deletable": false, "editable": false @@ -1884,10 +1888,10 @@ "id": "c038d028", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:40.995886Z", - "iopub.status.busy": "2023-10-11T16:08:40.995886Z", - "iopub.status.idle": "2023-10-11T16:08:41.004530Z", - "shell.execute_reply": "2023-10-11T16:08:41.003512Z" + "iopub.execute_input": "2023-10-12T16:35:28.156862Z", + "iopub.status.busy": "2023-10-12T16:35:28.156862Z", + "iopub.status.idle": "2023-10-12T16:35:28.162344Z", + "shell.execute_reply": "2023-10-12T16:35:28.162344Z" }, "tags": [] }, @@ -1899,7 +1903,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f653f1a8", + "id": "22d54387", "metadata": { "deletable": false, "editable": false @@ -1941,10 +1945,10 @@ "id": "1baa001d", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.018464Z", - "iopub.status.busy": "2023-10-11T16:08:41.018464Z", - "iopub.status.idle": "2023-10-11T16:08:41.030203Z", - "shell.execute_reply": "2023-10-11T16:08:41.029189Z" + "iopub.execute_input": "2023-10-12T16:35:28.174237Z", + "iopub.status.busy": "2023-10-12T16:35:28.174237Z", + "iopub.status.idle": "2023-10-12T16:35:28.180967Z", + "shell.execute_reply": "2023-10-12T16:35:28.180967Z" }, "tags": [] }, @@ -1965,7 +1969,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c2eeae0f", + "id": "7ad10103", "metadata": { "deletable": false, "editable": false @@ -2016,10 +2020,10 @@ "id": "01f0c7ef", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.045557Z", - "iopub.status.busy": "2023-10-11T16:08:41.045557Z", - "iopub.status.idle": "2023-10-11T16:08:41.054728Z", - "shell.execute_reply": "2023-10-11T16:08:41.053712Z" + "iopub.execute_input": "2023-10-12T16:35:28.192217Z", + "iopub.status.busy": "2023-10-12T16:35:28.192217Z", + "iopub.status.idle": "2023-10-12T16:35:28.197758Z", + "shell.execute_reply": "2023-10-12T16:35:28.197758Z" }, "tags": [] }, @@ -2036,7 +2040,7 @@ { "cell_type": "code", "execution_count": null, - "id": "818c80dc", + "id": "3dddd366", "metadata": { "deletable": false, "editable": false @@ -2074,10 +2078,10 @@ "id": "9451957f", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.068641Z", - "iopub.status.busy": "2023-10-11T16:08:41.068641Z", - "iopub.status.idle": "2023-10-11T16:08:41.076087Z", - "shell.execute_reply": "2023-10-11T16:08:41.075069Z" + "iopub.execute_input": "2023-10-12T16:35:28.208945Z", + "iopub.status.busy": "2023-10-12T16:35:28.207945Z", + "iopub.status.idle": "2023-10-12T16:35:28.213107Z", + "shell.execute_reply": "2023-10-12T16:35:28.213107Z" } }, "outputs": [], @@ -2102,10 +2106,10 @@ "id": "7b4a75f3", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.080087Z", - "iopub.status.busy": "2023-10-11T16:08:41.080087Z", - "iopub.status.idle": "2023-10-11T16:08:41.087496Z", - "shell.execute_reply": "2023-10-11T16:08:41.086479Z" + "iopub.execute_input": "2023-10-12T16:35:28.217115Z", + "iopub.status.busy": "2023-10-12T16:35:28.216113Z", + "iopub.status.idle": "2023-10-12T16:35:28.221271Z", + "shell.execute_reply": "2023-10-12T16:35:28.221271Z" }, "tags": [] }, @@ -2120,7 +2124,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a301fa1e", + "id": "a44af271", "metadata": { "deletable": false, "editable": false @@ -2158,10 +2162,10 @@ "id": "bc45050e", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.103066Z", - "iopub.status.busy": "2023-10-11T16:08:41.102069Z", - "iopub.status.idle": "2023-10-11T16:08:41.109887Z", - "shell.execute_reply": "2023-10-11T16:08:41.108870Z" + "iopub.execute_input": "2023-10-12T16:35:28.232074Z", + "iopub.status.busy": "2023-10-12T16:35:28.231075Z", + "iopub.status.idle": "2023-10-12T16:35:28.236246Z", + "shell.execute_reply": "2023-10-12T16:35:28.236246Z" }, "tags": [] }, @@ -2176,10 +2180,10 @@ "id": "1151f0c8", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.113885Z", - "iopub.status.busy": "2023-10-11T16:08:41.112888Z", - "iopub.status.idle": "2023-10-11T16:08:41.118814Z", - "shell.execute_reply": "2023-10-11T16:08:41.117801Z" + "iopub.execute_input": "2023-10-12T16:35:28.239253Z", + "iopub.status.busy": "2023-10-12T16:35:28.239253Z", + "iopub.status.idle": "2023-10-12T16:35:28.242723Z", + "shell.execute_reply": "2023-10-12T16:35:28.242723Z" }, "tags": [] }, @@ -2205,10 +2209,10 @@ "id": "720cefac", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.122817Z", - "iopub.status.busy": "2023-10-11T16:08:41.122817Z", - "iopub.status.idle": "2023-10-11T16:08:41.130162Z", - "shell.execute_reply": "2023-10-11T16:08:41.129151Z" + "iopub.execute_input": "2023-10-12T16:35:28.245729Z", + "iopub.status.busy": "2023-10-12T16:35:28.245729Z", + "iopub.status.idle": "2023-10-12T16:35:28.250573Z", + "shell.execute_reply": "2023-10-12T16:35:28.250573Z" } }, "outputs": [], @@ -2233,10 +2237,10 @@ "id": "0b5a186a", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.135167Z", - "iopub.status.busy": "2023-10-11T16:08:41.134166Z", - "iopub.status.idle": "2023-10-11T16:08:41.142364Z", - "shell.execute_reply": "2023-10-11T16:08:41.141347Z" + "iopub.execute_input": "2023-10-12T16:35:28.253580Z", + "iopub.status.busy": "2023-10-12T16:35:28.253580Z", + "iopub.status.idle": "2023-10-12T16:35:28.258621Z", + "shell.execute_reply": "2023-10-12T16:35:28.258621Z" } }, "outputs": [], @@ -2273,10 +2277,10 @@ "id": "96068c1d", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.146360Z", - "iopub.status.busy": "2023-10-11T16:08:41.146360Z", - "iopub.status.idle": "2023-10-11T16:08:41.156949Z", - "shell.execute_reply": "2023-10-11T16:08:41.155932Z" + "iopub.execute_input": "2023-10-12T16:35:28.262629Z", + "iopub.status.busy": "2023-10-12T16:35:28.261629Z", + "iopub.status.idle": "2023-10-12T16:35:28.268560Z", + "shell.execute_reply": "2023-10-12T16:35:28.268560Z" }, "tags": [] }, @@ -2288,7 +2292,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2fe6db23", + "id": "e5f868d8", "metadata": { "deletable": false, "editable": false @@ -2330,10 +2334,10 @@ "id": "09aa8e71", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.172131Z", - "iopub.status.busy": "2023-10-11T16:08:41.171129Z", - "iopub.status.idle": "2023-10-11T16:08:41.180377Z", - "shell.execute_reply": "2023-10-11T16:08:41.179356Z" + "iopub.execute_input": "2023-10-12T16:35:28.279815Z", + "iopub.status.busy": "2023-10-12T16:35:28.278815Z", + "iopub.status.idle": "2023-10-12T16:35:28.284984Z", + "shell.execute_reply": "2023-10-12T16:35:28.284984Z" }, "tags": [] }, @@ -2351,7 +2355,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b187b206", + "id": "d445eb40", "metadata": { "deletable": false, "editable": false @@ -2405,10 +2409,10 @@ "id": "9786714a", "metadata": { "execution": { - "iopub.execute_input": "2023-10-11T16:08:41.194420Z", - "iopub.status.busy": "2023-10-11T16:08:41.194420Z", - "iopub.status.idle": "2023-10-11T16:08:41.203402Z", - "shell.execute_reply": "2023-10-11T16:08:41.202391Z" + "iopub.execute_input": "2023-10-12T16:35:28.296159Z", + "iopub.status.busy": "2023-10-12T16:35:28.296159Z", + "iopub.status.idle": "2023-10-12T16:35:28.302882Z", + "shell.execute_reply": "2023-10-12T16:35:28.302882Z" }, "tags": [] }, @@ -2427,7 +2431,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9831191c", + "id": "82366c6e", "metadata": { "deletable": false, "editable": false @@ -2445,7 +2449,7 @@ "editable": false }, "source": [ - "## Great work! You are now ready to start [P6](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-s23-projects/-/tree/main/p6)." + "## Great work! You are now ready to start [P6](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f23-projects/-/tree/main/p6)." ] } ],