Module 11 Summary
Thomas J. Kennedy
1 Summary
Having completed the NumPy module (i.e., Module 11) you should now be familiar with the basics of NumPy arrays:
-
creating NumPy arrays that are filled with zeros, filled with ones, or left unitialized.
-
examining the
shape
of annp.array
object. -
creating an
np.array
from an existing Pythonlist
ortuple
object
2 Questions to Consider
Take a few minutes to think about the following:
-
readability of code that uses NumPy’s broadcast mechanic
-
performance benefits of
np.array
objects with respect to runtime -
performance benefits of
np.array
objects with respect to memory usage -
when using an
np.array
can slow down Python code
3 On to the Review…
The next module (i.e., Semester review & Things to Explore) will serve as a brief review of the semester.