From 02ab5113d4fa9dd8349b2c5f5027777d0cc7262b Mon Sep 17 00:00:00 2001 From: ashwinmaran <amaran@wisc.edu> Date: Wed, 5 Apr 2023 21:45:11 -0500 Subject: [PATCH] more typos fixed --- p10/p10.ipynb | 240 +++++++++++++++++++++++++------------------------- 1 file changed, 120 insertions(+), 120 deletions(-) diff --git a/p10/p10.ipynb b/p10/p10.ipynb index 3778e0e..4c56406 100644 --- a/p10/p10.ipynb +++ b/p10/p10.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f17d2859", + "id": "f396833a", "metadata": { "cell_type": "code", "deletable": false, @@ -21,7 +21,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ca1ccfa8", + "id": "2a9004dc", "metadata": { "deletable": false }, @@ -32,7 +32,7 @@ }, { "cell_type": "markdown", - "id": "aedfc54c", + "id": "f1ec6f63", "metadata": { "deletable": false, "editable": false @@ -43,7 +43,7 @@ }, { "cell_type": "markdown", - "id": "03e2ab9c", + "id": "b28eadf3", "metadata": { "deletable": false, "editable": false @@ -64,7 +64,7 @@ }, { "cell_type": "markdown", - "id": "29fc8a74", + "id": "e5ba310d", "metadata": { "deletable": false, "editable": false @@ -77,7 +77,7 @@ }, { "cell_type": "markdown", - "id": "cf811699", + "id": "812fd1e3", "metadata": { "deletable": false, "editable": false @@ -90,7 +90,7 @@ }, { "cell_type": "markdown", - "id": "56ff123c", + "id": "9eeea079", "metadata": { "deletable": false, "editable": false @@ -132,7 +132,7 @@ }, { "cell_type": "markdown", - "id": "ff681668", + "id": "98ce190c", "metadata": { "deletable": false, "editable": false @@ -147,7 +147,7 @@ }, { "cell_type": "markdown", - "id": "82293900", + "id": "76cb3bea", "metadata": { "deletable": false, "editable": false @@ -214,7 +214,7 @@ }, { "cell_type": "markdown", - "id": "7ef2b166", + "id": "3f5e6d62", "metadata": { "deletable": false, "editable": false @@ -256,7 +256,7 @@ }, { "cell_type": "markdown", - "id": "838a10bd", + "id": "db57e52a", "metadata": { "deletable": false, "editable": false, @@ -271,7 +271,7 @@ { "cell_type": "code", "execution_count": null, - "id": "97fccbb9", + "id": "b3b9c3cd", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -284,7 +284,7 @@ }, { "cell_type": "markdown", - "id": "be69e73d", + "id": "f4241b42", "metadata": { "deletable": false, "editable": false @@ -300,7 +300,7 @@ }, { "cell_type": "markdown", - "id": "be6888bf", + "id": "8e898a04", "metadata": { "deletable": false, "editable": false @@ -314,7 +314,7 @@ { "cell_type": "code", "execution_count": null, - "id": "953bf8f2", + "id": "028a4895", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -327,7 +327,7 @@ { "cell_type": "code", "execution_count": null, - "id": "322ae785", + "id": "ea0ed3b7", "metadata": { "deletable": false, "editable": false @@ -339,7 +339,7 @@ }, { "cell_type": "markdown", - "id": "e4d4ca67", + "id": "11843795", "metadata": { "deletable": false, "editable": false @@ -355,7 +355,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d581b6f9", + "id": "05bc9228", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -368,7 +368,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c58cc3c6", + "id": "ed1fa77b", "metadata": { "deletable": false, "editable": false @@ -380,7 +380,7 @@ }, { "cell_type": "markdown", - "id": "c821359f", + "id": "3cde35b9", "metadata": { "deletable": false, "editable": false @@ -396,7 +396,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d0aa6f68", + "id": "4508bc57", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -409,7 +409,7 @@ { "cell_type": "code", "execution_count": null, - "id": "25bc01c0", + "id": "cbba12f3", "metadata": { "deletable": false, "editable": false @@ -421,7 +421,7 @@ }, { "cell_type": "markdown", - "id": "097a9b37", + "id": "3ba2c245", "metadata": { "deletable": false, "editable": false @@ -437,7 +437,7 @@ { "cell_type": "code", "execution_count": null, - "id": "decb0fbd", + "id": "338fa750", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -450,7 +450,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8cc5e772", + "id": "c038ff5d", "metadata": { "deletable": false, "editable": false @@ -462,7 +462,7 @@ }, { "cell_type": "markdown", - "id": "c7c31749", + "id": "4d8decd8", "metadata": { "deletable": false, "editable": false @@ -484,7 +484,7 @@ { "cell_type": "code", "execution_count": null, - "id": "eeeb41ce", + "id": "7bd79cff", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -497,7 +497,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ae5a751b", + "id": "c5d23708", "metadata": { "tags": [] }, @@ -514,7 +514,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1301d18a", + "id": "ec8e1c20", "metadata": { "deletable": false, "editable": false @@ -526,7 +526,7 @@ }, { "cell_type": "markdown", - "id": "c84bdf5b", + "id": "8fefa336", "metadata": { "deletable": false, "editable": false @@ -540,7 +540,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2e0ffa80", + "id": "9aced678", "metadata": { "tags": [] }, @@ -551,7 +551,7 @@ }, { "cell_type": "markdown", - "id": "3dcfbf72", + "id": "171562f2", "metadata": { "deletable": false, "editable": false @@ -563,7 +563,7 @@ { "cell_type": "code", "execution_count": null, - "id": "22076d49", + "id": "1215b9e9", "metadata": { "tags": [] }, @@ -579,7 +579,7 @@ { "cell_type": "code", "execution_count": null, - "id": "dc0e9dfc", + "id": "e8419fbb", "metadata": { "tags": [] }, @@ -590,7 +590,7 @@ }, { "cell_type": "markdown", - "id": "1decd055", + "id": "6995b9e5", "metadata": { "deletable": false, "editable": false @@ -615,7 +615,7 @@ }, { "cell_type": "markdown", - "id": "e37a3070", + "id": "5c520514", "metadata": { "deletable": false, "editable": false @@ -644,7 +644,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4193f133", + "id": "9b744712", "metadata": { "tags": [] }, @@ -655,7 +655,7 @@ }, { "cell_type": "markdown", - "id": "635d4eca", + "id": "ebd13db9", "metadata": { "deletable": false, "editable": false @@ -681,7 +681,7 @@ { "cell_type": "code", "execution_count": null, - "id": "447e5e5b", + "id": "2576eb2e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -694,7 +694,7 @@ { "cell_type": "code", "execution_count": null, - "id": "83c46b49", + "id": "c94c1c9a", "metadata": { "deletable": false, "editable": false @@ -706,7 +706,7 @@ }, { "cell_type": "markdown", - "id": "bdc5f5f6", + "id": "5c0062ca", "metadata": { "deletable": false, "editable": false @@ -714,7 +714,7 @@ "source": [ "### Function 2: `get_stars(star_file)`\n", "\n", - "This function **must** take in as its input, the path of a CSV file `star_file` which contains data on stars in the same format as `stars_1.csv`. It **must** return a **dictionary** mapping the `Name` of each star in `star_file` to a `Star` object containing all the other details of the star.\n", + "This function **must** take in as its input, the **path** of a CSV file `star_file` which contains data on stars in the same format as `stars_1.csv`. It **must** return a **dictionary** mapping the `Name` of each star in `star_file` to a `Star` object containing all the other details of the star.\n", "\n", "You **must** access the values in `stars_file` using the `star_cell` function.\n", "\n", @@ -754,7 +754,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5f22d952", + "id": "b740689b", "metadata": { "tags": [] }, @@ -766,7 +766,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8acf6f55", + "id": "dc32437d", "metadata": { "tags": [] }, @@ -779,7 +779,7 @@ }, { "cell_type": "markdown", - "id": "1fc1be3e", + "id": "ca8ffde0", "metadata": { "deletable": false, "editable": false @@ -793,7 +793,7 @@ { "cell_type": "code", "execution_count": null, - "id": "af18fe78", + "id": "903998a7", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -806,7 +806,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f10ba68f", + "id": "426d6def", "metadata": { "deletable": false, "editable": false @@ -818,7 +818,7 @@ }, { "cell_type": "markdown", - "id": "fcf6f75d", + "id": "f30115c8", "metadata": { "deletable": false, "editable": false @@ -834,7 +834,7 @@ { "cell_type": "code", "execution_count": null, - "id": "93bba393", + "id": "157d704e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -847,7 +847,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9ed681f3", + "id": "d7d8b3f1", "metadata": { "deletable": false, "editable": false @@ -859,7 +859,7 @@ }, { "cell_type": "markdown", - "id": "a8fe661d", + "id": "49b37f18", "metadata": { "deletable": false, "editable": false @@ -873,7 +873,7 @@ { "cell_type": "code", "execution_count": null, - "id": "00c22ebf", + "id": "c802ca2e", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -886,7 +886,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1d8b104b", + "id": "02a5d469", "metadata": { "deletable": false, "editable": false @@ -898,7 +898,7 @@ }, { "cell_type": "markdown", - "id": "a389c2ef", + "id": "81872cf0", "metadata": { "deletable": false, "editable": false @@ -916,7 +916,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ccb51a2c", + "id": "ad4f90f7", "metadata": { "tags": [] }, @@ -928,7 +928,7 @@ }, { "cell_type": "markdown", - "id": "f68afe6c", + "id": "8a576ec7", "metadata": { "deletable": false, "editable": false @@ -939,7 +939,7 @@ }, { "cell_type": "markdown", - "id": "1941a785", + "id": "a094b8ab", "metadata": { "deletable": false, "editable": false @@ -953,7 +953,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f4a3db35", + "id": "c0ac3fcd", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -966,7 +966,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c8dbb77c", + "id": "c847b57e", "metadata": { "deletable": false, "editable": false @@ -978,7 +978,7 @@ }, { "cell_type": "markdown", - "id": "d46ece7d", + "id": "da9bdda7", "metadata": { "deletable": false, "editable": false @@ -992,7 +992,7 @@ { "cell_type": "code", "execution_count": null, - "id": "938798dc", + "id": "cf7d332d", "metadata": { "tags": [] }, @@ -1004,7 +1004,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ef91cd78", + "id": "01691c94", "metadata": { "deletable": false, "editable": false @@ -1016,7 +1016,7 @@ }, { "cell_type": "markdown", - "id": "aea9ae9c", + "id": "3821f4e9", "metadata": { "deletable": false, "editable": false @@ -1030,7 +1030,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5cd4d044", + "id": "d239b9e1", "metadata": { "tags": [] }, @@ -1042,7 +1042,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1e682e13", + "id": "02b59b92", "metadata": { "deletable": false, "editable": false @@ -1054,7 +1054,7 @@ }, { "cell_type": "markdown", - "id": "7967f20a", + "id": "047b6247", "metadata": { "deletable": false, "editable": false @@ -1081,7 +1081,7 @@ { "cell_type": "code", "execution_count": null, - "id": "740e6c49", + "id": "f4787b8f", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1094,7 +1094,7 @@ { "cell_type": "code", "execution_count": null, - "id": "14fb2681", + "id": "4ede0ba6", "metadata": { "tags": [] }, @@ -1110,7 +1110,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d244642e", + "id": "2032162d", "metadata": { "deletable": false, "editable": false @@ -1122,7 +1122,7 @@ }, { "cell_type": "markdown", - "id": "57b9bb61", + "id": "9a24a493", "metadata": { "deletable": false, "editable": false @@ -1137,7 +1137,7 @@ }, { "cell_type": "markdown", - "id": "57792970", + "id": "e59965f4", "metadata": { "deletable": false, "editable": false @@ -1149,7 +1149,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5640e5f8", + "id": "8ff4fc58", "metadata": { "tags": [] }, @@ -1164,7 +1164,7 @@ }, { "cell_type": "markdown", - "id": "2de881e0", + "id": "70eae0f5", "metadata": { "deletable": false, "editable": false @@ -1189,7 +1189,7 @@ }, { "cell_type": "markdown", - "id": "dc7e0300", + "id": "0f432ca1", "metadata": { "deletable": false, "editable": false @@ -1201,7 +1201,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5fb6db67", + "id": "762ce671", "metadata": { "tags": [] }, @@ -1213,7 +1213,7 @@ { "cell_type": "code", "execution_count": null, - "id": "db1706a6", + "id": "a3efa679", "metadata": { "tags": [] }, @@ -1226,7 +1226,7 @@ }, { "cell_type": "markdown", - "id": "0ba840ec", + "id": "493d4e7a", "metadata": { "deletable": false, "editable": false @@ -1247,7 +1247,7 @@ }, { "cell_type": "markdown", - "id": "1a7b40c1", + "id": "8c07f71d", "metadata": { "deletable": false, "editable": false @@ -1255,7 +1255,7 @@ "source": [ "### Function 3: `planet_cell(row_idx, col_name, planets_rows, header=planets_header)`\n", "\n", - "This function **must** read the **list** of **lists** `planets_rows`, and extract the value at **row** index `row_idx` and **column** index `col_idx`. The function **must** typecast the value based on `col_name`. If the value in `stars_rows` is **missing** (i.e., it is `''`), then the value returned **must** be `None`.\n", + "This function **must** read the **list** of **lists** `planets_rows`, and extract the value at **row** index `row_idx` and **column** index `col_idx`. The function **must** typecast the value based on `col_name`. If the value in `planets_rows` is **missing** (i.e., it is `''`), then the value returned **must** be `None`.\n", "\n", "The **column** of `planets_rows` where the value should be obtained from, and the correct **data type** for the value are listed in the table below:\n", "\n", @@ -1279,7 +1279,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f6bcc1fd", + "id": "582ea91a", "metadata": { "tags": [] }, @@ -1290,7 +1290,7 @@ }, { "cell_type": "markdown", - "id": "36a0e607", + "id": "90b63dcf", "metadata": { "deletable": false, "editable": false @@ -1324,7 +1324,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7e89d962", + "id": "449f3905", "metadata": { "tags": [] }, @@ -1336,7 +1336,7 @@ { "cell_type": "code", "execution_count": null, - "id": "dba0b869", + "id": "bfe91981", "metadata": { "deletable": false, "editable": false @@ -1348,7 +1348,7 @@ }, { "cell_type": "markdown", - "id": "b19cf400", + "id": "0312fbbb", "metadata": { "deletable": false, "editable": false @@ -1356,7 +1356,7 @@ "source": [ "### Function 4: `get_planets(planet_file, mapping_file)`: \n", "\n", - "This function **must** take in as its input, a CSV file `planet_file` which contains data on planets in the same format as `planets_1.csv`, as well as a JSON file `mapping_file` which maps planets in `planet_file` to their host star in the same format as `mapping_1.json`. This function **must** return a **list** of `Planet` objects by combining the data in these two files. The `Planet` objects **must** appear in the same order as they do in `planet_file`.\n", + "This function **must** take in as its input, the **path** to a CSV file `planet_file` which contains data on planets in the same format as `planets_1.csv`, as well as the **path** to a JSON file `mapping_file` which maps planets in `planet_file` to their host star in the same format as `mapping_1.json`. This function **must** return a **list** of `Planet` objects by combining the data in these two files. The `Planet` objects **must** appear in the same order as they do in `planet_file`.\n", "\n", "You **must** access the values in `planets_file` using the `planet_cell` function.\n", "\n", @@ -1394,7 +1394,7 @@ }, { "cell_type": "markdown", - "id": "efc1a5b9", + "id": "a9ffe5f4", "metadata": { "deletable": false, "editable": false @@ -1406,7 +1406,7 @@ { "cell_type": "code", "execution_count": null, - "id": "df96cae0", + "id": "8551c623", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1427,7 +1427,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3a49918b", + "id": "c0ad0a07", "metadata": { "tags": [] }, @@ -1439,7 +1439,7 @@ { "cell_type": "code", "execution_count": null, - "id": "758c67ef", + "id": "2f78649a", "metadata": { "deletable": false, "editable": false @@ -1451,7 +1451,7 @@ }, { "cell_type": "markdown", - "id": "4d964843", + "id": "26a85e34", "metadata": { "deletable": false, "editable": false @@ -1465,7 +1465,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2e59a7bd", + "id": "604fe386", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1478,7 +1478,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b843a17a", + "id": "703135ae", "metadata": { "deletable": false, "editable": false @@ -1490,7 +1490,7 @@ }, { "cell_type": "markdown", - "id": "fd6230f5", + "id": "0cdf8b66", "metadata": { "deletable": false, "editable": false @@ -1522,7 +1522,7 @@ }, { "cell_type": "markdown", - "id": "a2b6fc28", + "id": "5fa44f56", "metadata": { "deletable": false, "editable": false @@ -1536,7 +1536,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9d37904e", + "id": "94078759", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1549,7 +1549,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f9b9b9ea", + "id": "bbb938a1", "metadata": { "deletable": false, "editable": false @@ -1561,7 +1561,7 @@ }, { "cell_type": "markdown", - "id": "be658501", + "id": "7bd420ba", "metadata": { "deletable": false, "editable": false @@ -1582,7 +1582,7 @@ }, { "cell_type": "markdown", - "id": "e2afcbf0", + "id": "335b296d", "metadata": { "deletable": false, "editable": false @@ -1602,7 +1602,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e0576c40", + "id": "a871e376", "metadata": { "tags": [] }, @@ -1614,7 +1614,7 @@ }, { "cell_type": "markdown", - "id": "da317bc0", + "id": "eda37156", "metadata": { "deletable": false, "editable": false @@ -1625,7 +1625,7 @@ }, { "cell_type": "markdown", - "id": "f1fe5e2f", + "id": "8a5c6894", "metadata": { "deletable": false, "editable": false @@ -1641,7 +1641,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a27f7654", + "id": "f47352eb", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1654,7 +1654,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3bc371e7", + "id": "41bfc887", "metadata": { "deletable": false, "editable": false @@ -1666,7 +1666,7 @@ }, { "cell_type": "markdown", - "id": "a34d78ed", + "id": "a80c89dd", "metadata": { "deletable": false, "editable": false @@ -1680,7 +1680,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9d7cc820", + "id": "3478a157", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1693,7 +1693,7 @@ { "cell_type": "code", "execution_count": null, - "id": "beb87366", + "id": "e63c0929", "metadata": { "deletable": false, "editable": false @@ -1705,7 +1705,7 @@ }, { "cell_type": "markdown", - "id": "676d33c1", + "id": "5dd3615e", "metadata": { "deletable": false, "editable": false @@ -1723,7 +1723,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b76fd568", + "id": "c2dd124b", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1736,7 +1736,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5418aa16", + "id": "f5e6462c", "metadata": { "deletable": false, "editable": false @@ -1748,7 +1748,7 @@ }, { "cell_type": "markdown", - "id": "3613cea6", + "id": "b82e2e1b", "metadata": { "deletable": false, "editable": false @@ -1762,7 +1762,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a091c05c", + "id": "3d4ff73f", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1775,7 +1775,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c82e8a7f", + "id": "5081f396", "metadata": { "deletable": false, "editable": false @@ -1787,7 +1787,7 @@ }, { "cell_type": "markdown", - "id": "0b43550e", + "id": "0299c54d", "metadata": { "deletable": false, "editable": false @@ -1801,7 +1801,7 @@ { "cell_type": "code", "execution_count": null, - "id": "68771617", + "id": "2f97f75a", "metadata": { "lines_to_next_cell": 0, "tags": [] @@ -1814,7 +1814,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7a4ae122", + "id": "abb3404a", "metadata": { "deletable": false, "editable": false @@ -1826,7 +1826,7 @@ }, { "cell_type": "markdown", - "id": "40153303", + "id": "16f6f3d4", "metadata": { "deletable": false, "editable": false @@ -1843,7 +1843,7 @@ { "cell_type": "code", "execution_count": null, - "id": "40dd80b8", + "id": "8d2008e0", "metadata": { "cell_type": "code", "deletable": false, @@ -1858,7 +1858,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0fbd07bd", + "id": "df3598d6", "metadata": { "cell_type": "code", "deletable": false, @@ -1872,7 +1872,7 @@ { "cell_type": "code", "execution_count": null, - "id": "dd9abe08", + "id": "612e51d2", "metadata": { "cell_type": "code", "deletable": false, @@ -1885,7 +1885,7 @@ }, { "cell_type": "markdown", - "id": "edf7026a", + "id": "04ce1247", "metadata": { "deletable": false, "editable": false -- GitLab