|
82 | 82 | }, |
83 | 83 | { |
84 | 84 | "cell_type": "code", |
85 | | - "execution_count": 9, |
| 85 | + "execution_count": 4, |
86 | 86 | "id": "81c6819c-412f-4787-8e44-cef39b035ca4", |
87 | 87 | "metadata": {}, |
88 | 88 | "outputs": [], |
|
101 | 101 | }, |
102 | 102 | { |
103 | 103 | "cell_type": "code", |
104 | | - "execution_count": 10, |
| 104 | + "execution_count": 5, |
105 | 105 | "id": "4c6e3606-cb4f-48a5-808f-1d4d65649ce1", |
106 | 106 | "metadata": {}, |
107 | 107 | "outputs": [], |
|
115 | 115 | "id": "6e63b2af-4d79-49e6-9f93-bbd6966a60a6", |
116 | 116 | "metadata": {}, |
117 | 117 | "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." |
119 | 119 | ] |
120 | 120 | }, |
121 | 121 | { |
122 | 122 | "cell_type": "code", |
123 | | - "execution_count": 11, |
| 123 | + "execution_count": 6, |
124 | 124 | "id": "1702df3c-65b1-45dd-8280-c87e300ac9a6", |
125 | 125 | "metadata": {}, |
126 | 126 | "outputs": [], |
|
140 | 140 | }, |
141 | 141 | { |
142 | 142 | "cell_type": "code", |
143 | | - "execution_count": 13, |
| 143 | + "execution_count": 7, |
144 | 144 | "id": "6609a625-c8ed-4695-8bd4-74d9cd7af05b", |
145 | 145 | "metadata": {}, |
146 | 146 | "outputs": [], |
|
152 | 152 | }, |
153 | 153 | { |
154 | 154 | "cell_type": "code", |
155 | | - "execution_count": 14, |
| 155 | + "execution_count": 8, |
156 | 156 | "id": "3f6beb98-9d04-4d87-84f1-a7db0bbcd46c", |
157 | 157 | "metadata": {}, |
158 | 158 | "outputs": [ |
|
193 | 193 | "time_series.info()" |
194 | 194 | ] |
195 | 195 | }, |
| 196 | + { |
| 197 | + "cell_type": "markdown", |
| 198 | + "id": "0dced61d-d65a-4e5b-9698-545d742d384a", |
| 199 | + "metadata": {}, |
| 200 | + "source": [ |
| 201 | + "The original dataframe is unchanged." |
| 202 | + ] |
| 203 | + }, |
196 | 204 | { |
197 | 205 | "cell_type": "code", |
198 | | - "execution_count": null, |
| 206 | + "execution_count": 9, |
199 | 207 | "id": "42e86dc9-5dea-4472-8241-159200c55dac", |
200 | 208 | "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": {}, |
201 | 237 | "outputs": [], |
202 | 238 | "source": [] |
203 | 239 | } |
|
0 commit comments