Skip to content

Commit dcf248a

Browse files
committed
some improvements
1 parent 59e2d6b commit dcf248a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

03_Grouping/Regiment/Exercises_solutions.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
}
205205
],
206206
"source": [
207-
"regiment = pd.DataFrame(raw_data, columns = ['regiment', 'company', 'name', 'preTestScore', 'postTestScore'])\n",
207+
"regiment = pd.DataFrame(raw_data, columns = raw_data.keys())\n",
208208
"regiment"
209209
]
210210
},
@@ -273,7 +273,7 @@
273273
}
274274
],
275275
"source": [
276-
"regiment.groupby(regiment['regiment']).mean()"
276+
"regiment[regiment['regiment'] == 'Nighthawks'].groupby('regiment').mean()"
277277
]
278278
},
279279
{

0 commit comments

Comments
 (0)