From ceb4b2afa491073bea3d4dc38637c7ec1efc4839 Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Wed, 24 Sep 2025 13:07:40 +0300 Subject: [PATCH] added diet and location data --- exercises/tabular_join/tabular_join.ipynb | 43 ++++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/exercises/tabular_join/tabular_join.ipynb b/exercises/tabular_join/tabular_join.ipynb index 6cf3ed9..9fc1ca0 100644 --- a/exercises/tabular_join/tabular_join.ipynb +++ b/exercises/tabular_join/tabular_join.ipynb @@ -329,9 +329,21 @@ "execution_count": 5, "id": "861ac334-14ce-490a-b3c4-877b32789f3e", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "(6324, 16)" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "## your code here\n" + "## yourd\n", + "df.shape" ] }, { @@ -347,9 +359,21 @@ "execution_count": 6, "id": "14f57842-5722-4953-88d6-d7cf3070400c", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "(6287, 3)" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "## your code here\n" + "## your code here\n", + "info.shape" ] }, { @@ -370,8 +394,7 @@ "outputs": [], "source": [ "## your code here\n", - "\n", - "\n" + "data_with_diet = df.merge(info,how = 'inner', on = ['location-id', 'patient-id'])" ] }, { @@ -474,7 +497,8 @@ "metadata": {}, "outputs": [], "source": [ - "## your code here:\n" + "## your code here:\n", + "data_with_locations = data_with_diet.merge(locations, on = 'location-id')" ] }, { @@ -607,7 +631,8 @@ "metadata": {}, "outputs": [], "source": [ - "# your code here\n" + "# your code here\n", + "data_without_dropouts = data_with_location" ] }, { @@ -649,7 +674,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.5" + "version": "3.13.6" } }, "nbformat": 4,