diff --git a/04-built-in.html b/04-built-in.html index dc65ab4c9..fd1f66034 100644 --- a/04-built-in.html +++ b/04-built-in.html @@ -788,7 +788,7 @@
1.1 * radiance = 1.1
max
and min
return TypeErrors in this case
because the correct number of parameters was not supplied. If it just
@@ -926,7 +926,7 @@
name[len(name) - 1]
Using help(math)
we see that we’ve got
pow(x,y)
in addition to sqrt(x)
, so we could
@@ -683,7 +683,7 @@
The random module seems like it could help.
@@ -761,7 +761,7 @@Importing the math module (import math
)
sin
and pi
without the library name as prefix,
@@ -942,7 +942,7 @@ To read in a CSV, we use pd.read_csv
and pass the
filename 'data/gapminder_gdp_americas.csv'
to it. We also
@@ -782,7 +782,7 @@
data_americas
by executing data_americas.head()
which lets us view the
@@ -912,7 +912,7 @@ We need to specify the path to the file of interest in the call to
pd.read_csv
. We first need to ‘jump’ out of the folder
@@ -949,7 +949,7 @@
In order to write the DataFrame data_americas
to a file
called processed.csv
, execute the following command:
The selection can be done by using the labels for both the row (“Serbia”) and the column (“gdpPercap_2007”):
@@ -870,7 +870,7 @@No, they do not produce the same output! The output of the first statement is:
@@ -928,7 +928,7 @@Let’s go through this piece of code line by line.
For each column in data
, idxmin
will return
the index value corresponding to each column’s minimum;
@@ -1044,7 +1044,7 @@
1:
1. Access a single column:
Among many choices, dir()
lists the
median()
function as a possibility. Thus,
The list values[start:stop]
has up to
stop - start
elements. For example,
@@ -786,7 +786,7 @@
list('some string')
@@ -832,7 +832,7 @@ The program prints m
.
The program prints
Program A prints
Program A prints
1 is not matched by the glob.
This solution builds a useful legend by using the string
split
method to extract the region
from
diff --git a/16-writing-functions.html b/16-writing-functions.html
index 4abf496ec..80169b4ef 100644
--- a/16-writing-functions.html
+++ b/16-writing-functions.html
@@ -664,7 +664,7 @@
The problem with the example is that the function
print_time()
is defined after the call to the
@@ -816,7 +816,7 @@
2003/2/1