added diet and location data
This commit is contained in:
parent
874f984bd5
commit
ceb4b2afa4
1 changed files with 34 additions and 9 deletions
|
@ -329,9 +329,21 @@
|
||||||
"execution_count": 5,
|
"execution_count": 5,
|
||||||
"id": "861ac334-14ce-490a-b3c4-877b32789f3e",
|
"id": "861ac334-14ce-490a-b3c4-877b32789f3e",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"(6324, 16)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 5,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"## your code here\n"
|
"## yourd\n",
|
||||||
|
"df.shape"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -347,9 +359,21 @@
|
||||||
"execution_count": 6,
|
"execution_count": 6,
|
||||||
"id": "14f57842-5722-4953-88d6-d7cf3070400c",
|
"id": "14f57842-5722-4953-88d6-d7cf3070400c",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"(6287, 3)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 6,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"## your code here\n"
|
"## your code here\n",
|
||||||
|
"info.shape"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -370,8 +394,7 @@
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"## your code here\n",
|
"## your code here\n",
|
||||||
"\n",
|
"data_with_diet = df.merge(info,how = 'inner', on = ['location-id', 'patient-id'])"
|
||||||
"\n"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -474,7 +497,8 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"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": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# your code here\n"
|
"# your code here\n",
|
||||||
|
"data_without_dropouts = data_with_location"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -649,7 +674,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.5"
|
"version": "3.13.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue