|
108 | 108 | "cell_type": "markdown",
|
109 | 109 | "metadata": {},
|
110 | 110 | "source": [
|
111 |
| - "If the only things that we need to specify our model are the onset and the trial type, i.e. **column 0** and **column 3**, we can get them with the command:" |
| 111 | + "We can also use [pandas](http://pandas.pydata.org/) to create a data frame from our dataset." |
112 | 112 | ]
|
113 | 113 | },
|
114 | 114 | {
|
|
196 | 196 | "cell_type": "markdown",
|
197 | 197 | "metadata": {},
|
198 | 198 | "source": [
|
199 |
| - "Before we can use the onsets, we first need to split them into the two conditions:" |
| 199 | + "Before we can use the onsets, we first need to split them into the three conditions:" |
200 | 200 | ]
|
201 | 201 | },
|
202 | 202 | {
|
|
253 | 253 | {
|
254 | 254 | "data": {
|
255 | 255 | "text/plain": [
|
256 |
| - "[('conditions', ['Finger', 'Foot', 'Lips']),\n", |
257 |
| - " ('onsets',\n", |
| 256 | + "[('onsets',\n", |
258 | 257 | " [[10, 100, 190, 280, 370],\n",
|
259 | 258 | " [40, 130, 220, 310, 400],\n",
|
260 | 259 | " [70, 160, 250, 340, 430]]),\n",
|
261 | 260 | " ('durations',\n",
|
262 | 261 | " [[15.0, 15.0, 15.0, 15.0, 15.0],\n",
|
263 | 262 | " [15.0, 15.0, 15.0, 15.0, 15.0],\n",
|
264 |
| - " [15.0, 15.0, 15.0, 15.0, 15.0]])]" |
| 263 | + " [15.0, 15.0, 15.0, 15.0, 15.0]]),\n", |
| 264 | + " ('conditions', ['Finger', 'Foot', 'Lips'])]" |
265 | 265 | ]
|
266 | 266 | },
|
267 | 267 | "execution_count": 5,
|
|
304 | 304 | "name": "python",
|
305 | 305 | "nbconvert_exporter": "python",
|
306 | 306 | "pygments_lexer": "ipython3",
|
307 |
| - "version": "3.6.0" |
| 307 | + "version": "3.5.2" |
308 | 308 | }
|
309 | 309 | },
|
310 | 310 | "nbformat": 4,
|
|
0 commit comments