text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
of in one breath if you will
3,358.619
3.72
all right let me pause here to see if
3,361.02
3.36
there's any questions specifically about
3,362.339
5.46
Lambda or Anonymous functions and this
3,364.38
5.52
tightening up of the code
3,367.799
4.5
and I have one question like whether we
3,369.9
4.919
could Define Lambda twice
3,372.299
5.221
can you you can use Lambda twice you can
3,374.819
4.5
create as many Anonymous functions as
3,377.52
4.44
you'd like and you generally use them in
3,379.319
4.26
context like this where you want to pass
3,381.96
4.379
to some other function a function that
3,383.579
5.101
itself does not need a name so you can
3,386.339
4.141
absolutely use it in more than one place
3,388.68
4.139
I just have only one use case for it how
3,390.48
4.2
about one other question on Lambda or
3,392.819
3.961
Anonymous functions specifically what
3,394.68
6.24
what if our Lambda would take more than
3,396.78
8.4
one line for example if sure if your
3,400.92
5.58
Lambda function takes multiple
3,405.18
3.54
parameters that is fine you can simply
3,406.5
5.28
specify commas followed by the names of
3,408.72
5.28
those parameters maybe X and Y or so
3,411.78
4.92
forth after the name student so here too
3,414
4.38
Lambda looks a little different from
3,416.7
3.96
Death in that you don't have parentheses
3,418.38
3.66
you don't have the keyword def you don't
3,420.66
3.3
have a function name but ultimately they
3,422.04
3.6
achieve that same effect they create a
3,423.96
4.26
function anonymously and allow you to
3,425.64
4.439
pass it in for instance as some value
3,428.22
5.52
here so let's now change students.csv to
3,430.079
5.941
contain not students houses at Hogwarts
3,433.74
4.26
but their homes where they grew up so
3,436.02
4.2
Draco for instance grew up in Malfoy
3,438
6.54
Manor Ron grew up in the borough Harry
3,440.22
7.5
grew up in uh number four
3,444.54
6.299
privet drive and according to the
3,447.72
4.98
internet no one knows where Hermione
3,450.839
3.601
grew up the movies apparently took
3,452.7
3.24
certain liberties with where she grew up
3,454.44
2.94
so for this purpose we're actually going
3,455.94
3.359
to remove Hermione because it is unknown
3,457.38
4.08
exactly where she was born so we still
3,459.299
4.681
have some three students but if anyone
3,461.46
6.18
can spot the potential problem now
3,463.98
6.24
how might this be a bad thing well let's
3,467.64
4.32
go and try and run our own code here let
3,470.22
4.2
me go back to students.pi here and let
3,471.96
3.839
me propose that I just changed my
3,474.42
3.12
semantics because I'm now not thinking
3,475.799
3.901
about Hogwarts houses but the students
3,477.54
3.42
own home so I'm just going to change
3,479.7
3.48
some variables I'm going to change this
3,480.96
5.28
house to a home this house to a home as
3,483.18
5.159
well as this one here I'm still going to
3,486.24
3.96
sort the students by name but I'm going
3,488.339
4.26
to say that they're not in a house but
3,490.2
4.98
rather from a home so I've just changed
3,492.599
4.441
the names of my variables in my grammar
3,495.18
4.02
in English here ultimately to print out
3,497.04
4.44
that for instance Harry is from number
3,499.2
5.099
four privet drive and so forth but let's
3,501.48
4.92
see what happens here when I run python
3,504.299
4.141
of this version of students.pi having
3,506.4
5.459
changed students.csv to contain those
3,508.44
6.3
homes and not houses enter
3,511.859
6.421
huh our first value error like the
3,514.74
6.9
program just doesn't work What might
3,518.28
5.76
explain this value error the explanation
3,521.64
5.34
of which rather cryptically is too many
3,524.04
5.16
values to unpack and the line in
3,526.98
6.18
question is this one involving split how
3,529.2
6.3
did all of a sudden after all of these
3,533.16
4.74
successful runs of this program did line
3,535.5
6.079
five suddenly now break in the line
3,537.9
6.3
instruments.csv you have three values
3,541.579
3.941
there's a line that you have three
3,544.2
5.099
values and incident yeah I spent a lot
3,545.52
5.819
of time trying to figure out where every
3,549.299
3.78
student should be from so that we could
3,551.339
3.48
create this problem for us and
3,553.079
3.421
wonderfully like the first sentence of
3,554.819
4.74
the book is number four privet drive and
3,556.5
4.859
so the fact that that address has a
3,559.559
4.321
comma in it is problematic why because
3,561.359
4.681
you and I decided some time ago to just
3,563.88
4.439
standardize on commas CSV comma
3,566.04
7.44
separated values to denote the uh
3,568.319
7.141
we standardized on commas in order to
3,573.48
4.74
delineate one value from another and if
3,575.46
5.52
we have commas grammatically in the
3,578.22
5.04
student's home we're clearly confusing
3,580.98
4.5
it as this special symbol and the split
3,583.26
4.92
function is now for just Harry trying to
3,585.48
5.28
split it into three values not just two
3,588.18
4.56
and that's why there's too many values
3,590.76
4.38
to unpack because we're only trying to
3,592.74
5.64
assign two variables name and house now
3,595.14
5.1
what could we do here well we could just
3,598.38
3.78