Skip to content

Commit 512365b

Browse files
committed
Clarify text
1 parent 7bfe25c commit 512365b

File tree

1 file changed

+43
-7
lines changed

1 file changed

+43
-7
lines changed

source-code/pandas/pipes.ipynb

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
},
8383
{
8484
"cell_type": "code",
85-
"execution_count": 9,
85+
"execution_count": 4,
8686
"id": "81c6819c-412f-4787-8e44-cef39b035ca4",
8787
"metadata": {},
8888
"outputs": [],
@@ -101,7 +101,7 @@
101101
},
102102
{
103103
"cell_type": "code",
104-
"execution_count": 10,
104+
"execution_count": 5,
105105
"id": "4c6e3606-cb4f-48a5-808f-1d4d65649ce1",
106106
"metadata": {},
107107
"outputs": [],
@@ -115,12 +115,12 @@
115115
"id": "6e63b2af-4d79-49e6-9f93-bbd6966a60a6",
116116
"metadata": {},
117117
"source": [
118-
"Finally, we compute the mean value of the temperatures across all patients for each time step."
118+
"Finally, we compute the mean value of the temperatures across all patients for each time step. Note that the name of the column is a parameter."
119119
]
120120
},
121121
{
122122
"cell_type": "code",
123-
"execution_count": 11,
123+
"execution_count": 6,
124124
"id": "1702df3c-65b1-45dd-8280-c87e300ac9a6",
125125
"metadata": {},
126126
"outputs": [],
@@ -140,7 +140,7 @@
140140
},
141141
{
142142
"cell_type": "code",
143-
"execution_count": 13,
143+
"execution_count": 7,
144144
"id": "6609a625-c8ed-4695-8bd4-74d9cd7af05b",
145145
"metadata": {},
146146
"outputs": [],
@@ -152,7 +152,7 @@
152152
},
153153
{
154154
"cell_type": "code",
155-
"execution_count": 14,
155+
"execution_count": 8,
156156
"id": "3f6beb98-9d04-4d87-84f1-a7db0bbcd46c",
157157
"metadata": {},
158158
"outputs": [
@@ -193,11 +193,47 @@
193193
"time_series.info()"
194194
]
195195
},
196+
{
197+
"cell_type": "markdown",
198+
"id": "0dced61d-d65a-4e5b-9698-545d742d384a",
199+
"metadata": {},
200+
"source": [
201+
"The original dataframe is unchanged."
202+
]
203+
},
196204
{
197205
"cell_type": "code",
198-
"execution_count": null,
206+
"execution_count": 9,
199207
"id": "42e86dc9-5dea-4472-8241-159200c55dac",
200208
"metadata": {},
209+
"outputs": [
210+
{
211+
"name": "stdout",
212+
"output_type": "stream",
213+
"text": [
214+
"<class 'pandas.core.frame.DataFrame'>\n",
215+
"RangeIndex: 62 entries, 0 to 61\n",
216+
"Data columns (total 4 columns):\n",
217+
" # Column Non-Null Count Dtype \n",
218+
"--- ------ -------------- ----- \n",
219+
" 0 patient 62 non-null int64 \n",
220+
" 1 dose 61 non-null float64 \n",
221+
" 2 date 62 non-null datetime64[ns]\n",
222+
" 3 temperature 61 non-null float64 \n",
223+
"dtypes: datetime64[ns](1), float64(2), int64(1)\n",
224+
"memory usage: 2.1 KB\n"
225+
]
226+
}
227+
],
228+
"source": [
229+
"data.info()"
230+
]
231+
},
232+
{
233+
"cell_type": "code",
234+
"execution_count": null,
235+
"id": "77ff0a74-c286-412f-8ea9-6df113efd4fe",
236+
"metadata": {},
201237
"outputs": [],
202238
"source": []
203239
}

0 commit comments

Comments
 (0)