Correcting a broken import
In this exercise, we'll learn to import numpy
, a module for performing mathematical operations on lists of data. The standard alias for numpy
is np
.
What did you need to change to make the import run without errors?
This exercise is part of the course
Introduction to Data Science in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Fix the import of numpy to run without errors
import NumPy as np