Getting help
You'll need to use the .astype()
array method we covered in the first chapter of this course for the next exercise. If you forget exactly how .astype()
works, you could check out the course slides or NumPy's documentation on numpy.org. There is, however, an even faster way to jog your memory…
numpy
is loaded as np
.
This exercise is part of the course
Introduction to NumPy
Exercise instructions
- Return NumPy's documentation text for
.astype()
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Display the documentation for .astype()
____