00:01
Okay, so this question wants us to read in a csv file, compute the averages for the students, blah, blah, blah.
00:07
Okay, so obviously i don't have this csv file.
00:10
So i've just copy -pasted this and put it into a text file called untitled .txte.
00:17
And that's what i'm going to be using instead of what you have, which i guess is this csv file.
00:27
So mine's going to look like this, and i'm going to use there equals none.
00:36
Maybe yeah um and so you will be typing in you know student dash c sv dot p y here and i don't know you might have a header but obviously i have just this is all i have okay so let's do this i want us to find each student average so uh what happens if we look at df zero so that's just these student names and if we look at df dot lock zero that gives us the entire set for joe.
01:11
Okay, so let's call a list.
01:14
Let's call it means equals some list.
01:19
Bf dot lock equals zero.
01:23
And so if we want the mean of this, we're going to do means, that append, and we're going to import numpai for this.
01:31
V from numpi import star.
01:34
Generally, i think if we're working with pandas, we can assume that we can also use numpi.
01:38
So i'm just going to just going to do that.
01:41
And we're going to take df .lock 0.
01:46
And so this, okay, there's typo.
01:56
You can only concatenate stir.
02:00
And i think that's because df.
02:04
Lock 0 includes this name.
02:08
So we're going to do one on.
02:11
And that will give us just.
02:14
So df.
02:15
Lock 01 on.
02:21
So that'll give us.
02:22
The first mean.
02:23
And look at means that gives us whatever, 76...