From ecb1bea1ea5334f4f0b5c15ec3fa364f0041954c Mon Sep 17 00:00:00 2001 From: Cole Nelson <ctnelson1997@gmail.com> Date: Sun, 12 Nov 2023 22:09:07 -0600 Subject: [PATCH] updt --- .../Lec28_Pandas2_Solution_Nelson.ipynb | 85 ------------------- .../Lec28_Pandas2_Template_Nelson.ipynb | 22 ----- 2 files changed, 107 deletions(-) diff --git a/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Solution_Nelson.ipynb b/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Solution_Nelson.ipynb index deb9361..f5764f1 100644 --- a/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Solution_Nelson.ipynb +++ b/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Solution_Nelson.ipynb @@ -927,91 +927,6 @@ "DataFrame(data, index=[\"A\", \"B\", \"C\", \"D\"]) # must have a name for each row" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Explicitly naming the columns" - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "<div>\n", - "<style scoped>\n", - " .dataframe tbody tr th:only-of-type {\n", - " vertical-align: middle;\n", - " }\n", - "\n", - " .dataframe tbody tr th {\n", - " vertical-align: top;\n", - " }\n", - "\n", - " .dataframe thead th {\n", - " text-align: right;\n", - " }\n", - "</style>\n", - "<table border=\"1\" class=\"dataframe\">\n", - " <thead>\n", - " <tr style=\"text-align: right;\">\n", - " <th></th>\n", - " <th>Player name</th>\n", - " <th>Score</th>\n", - " </tr>\n", - " </thead>\n", - " <tbody>\n", - " <tr>\n", - " <th>0</th>\n", - " <td>Alice</td>\n", - " <td>6</td>\n", - " </tr>\n", - " <tr>\n", - " <th>1</th>\n", - " <td>Bob</td>\n", - " <td>7</td>\n", - " </tr>\n", - " <tr>\n", - " <th>2</th>\n", - " <td>Cindy</td>\n", - " <td>8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>3</th>\n", - " <td>Dan</td>\n", - " <td>9</td>\n", - " </tr>\n", - " </tbody>\n", - "</table>\n", - "</div>" - ], - "text/plain": [ - " Player name Score\n", - "0 Alice 6\n", - "1 Bob 7\n", - "2 Cindy 8\n", - "3 Dan 9" - ] - }, - "execution_count": 19, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "data = [\n", - " [\"Alice\", 6],\n", - " [\"Bob\", 7],\n", - " [\"Cindy\", 8],\n", - " [\"Dan\", 9]\n", - "]\n", - "DataFrame(data, columns=[\"Player name\", \"Score\"])\n" - ] - }, { "cell_type": "code", "execution_count": 20, diff --git a/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Template_Nelson.ipynb b/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Template_Nelson.ipynb index 2b4f875..f70d3de 100644 --- a/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Template_Nelson.ipynb +++ b/f23/Cole_Lecture_Notes/28_Pandas2/Lec28_Pandas2_Template_Nelson.ipynb @@ -360,28 +360,6 @@ "DataFrame(data, index=[\"A\", \"B\", \"C\", \"D\"]) # must have a name for each row" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Explicitly naming the columns" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "data = [\n", - " [\"Alice\", 6],\n", - " [\"Bob\", 7],\n", - " [\"Cindy\", 8],\n", - " [\"Dan\", 9]\n", - "]\n", - "DataFrame(data, columns=[\"Player name\", \"Score\"])\n" - ] - }, { "cell_type": "code", "execution_count": null, -- GitLab