The key to using the traditional method is to be sure to specify that you are using a function or module from the numpy package by preceding it either with numpy
or the abbreviation of your choice (such as np
). This is why the loadtxt
command in this example above is written np.loadtxt
instead of loadtxt
.
Here is another example: