then
cut
then
cut
As we will see in the next few chapters
Will we really return to this topic?
has
have
that we met earlier in this textbook
We haven't met this function before.
often times
oftentimes
straight forward
straightforward
a
as a?
easily
easy
two other methods
.plot is an attribute rather than a method
virdis
viridis
DataFramee
DataFrame
a
are a
Parts 1 and 2
chs. 1-3
Part 3 of this textbook
ch. 4 of Pandas
We can try and use pd.set_option()
This is left unexplained and unused.
and the Survived Column. Remember, if a person survived, they have a 1; if they did not, they have a 0. We can use the sum to know how many male vs. female survivors there were.
somewhat confusing given that the Survived column is not even included in the example
While this
This
rows
columns
known the quantity of column
knowing the quantity of a
grouby
groupby
rows
columns
pipe
misleading, since there is no functional parallel to the pipe symbol (|) as known e.g. from Shell commands; in Pandas, | is instead an OR operator
.
?
off
of
rows 5-20
6–20, or indices 5–19
eliminate
select
look ups
lookups
.
?
firsit
first
often times
oftentimes [here and always]
.uniques()
.unique()
the len function that we met in chapter 02_02
in fact the len function has not been introduced before (phrase is cut in print edition)
as bs4
not under the name of the library but as bs4
Viola
Voilà
the internet links a specific and unique address that can be used as a way to connect to a server without having to type out an IP address
i.e. URLs are used instead of IP addresses
. O
, o
will
pull?
server
a server
the same command
the same command (without “!”)
the
cut
thin
then
Chrome and Firefox
e.g. Chrome and Firefox
Selinium
Selenium
Selinium
Selenium
Selinium
Selenium
Selinium
Selenium
eXstensible
eXtensible
We can likewise do the same in reverse by grabbing all indices up to the first index. In other words, the item in index 0.
Unclear: "all indices up to the first index" can only refer to the single index 0. This is nonsensical phrasing. - If it is meant that we can grab all indices from the beginning of a list up to certain index then the example should be e.g. print (first_list[:2]) and the description should be changed accordingly. - If it is meant that we can grab indexes from behind (from right to left) up to the first index (being 0), the example/syntax given is wrong. Then it should be print (first_list[::-1]. This seems more likely given that the description would make sense as it stands and the mistake would just concern two signs in the example. But the concept of slice notation should be better introduced then.
three
two
diffult
difficult
what
that
command
function
glob class
glob function (as part of the glob module/library)
is
it
operator
statement
with
cut
operator
file?
operator
keyword (or "statement", as in print edition)
with operator
open function
operator
keyword (or "statement", as in print edition)
command
function
operator
keyword
If you open the terminal and you type “pip –version”.
sentence?
something
as something
f string
not explained before
a new class
a new instance of the Emperor class / an Emperor object
viola
voilà
After the class name, we have ().
cut
with
will
Keyword Argument
Default parameter and keyword argument
keyword argument
default parameter
argument
parameter
us
is
10
9
stoping
stopping
they most
they are most
Viola
Voilà
Pseduo
Pseudo
psudeo
pseudo
Tricket
Trinket
3
2
two
to
2%7
7%2
2//7
7//2
two
cut
parentheses
comma
This is a way you can easily identify a method (as opposed to a function).
refers only to "coming after the string"