You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01-numpy.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ minutes: 30
7
7
> ## Learning Objectives {.objectives}
8
8
>
9
9
> * Explain what a library is, and what libraries are used for.
10
-
> *Load a Python library and use the things it contains.
10
+
> *Import a Python library and use the things it contains.
11
11
> * Read tabular data from a file into a program.
12
12
> * Assign values to variables.
13
13
> * Select individual values and subsections from data.
@@ -22,18 +22,18 @@ specialized tools built up from these basic units live in [libraries](reference.
22
22
that can be called upon when needed.
23
23
24
24
In order to load our inflammation data,
25
-
we need to [import](reference.html#import) a library called [NumPy](http://docs.scipy.org/doc/numpy/"NumPy Documentation").
25
+
we need to open ([import](reference.html#import) in Python terminology) a library called [NumPy](http://docs.scipy.org/doc/numpy/"NumPy Documentation").
26
26
In general you should use this library if you want to do fancy things with numbers,
27
27
especially if you have matrices or arrays.
28
-
We can load NumPy using:
28
+
We can import NumPy using:
29
29
30
30
~~~{.python}
31
31
import numpy
32
32
~~~
33
33
34
34
Importing a library is like getting a piece of lab equipment out of a storage locker
35
35
and setting it up on the bench. Libraries provide additional functionality to the basic Python package, much like a new piece of equipment adds functionality to a lab space.
36
-
Once you've loaded the library,
36
+
Once you've imported the library,
37
37
we can ask the library to read our data file for us:
0 commit comments