Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NameError: name ‘np’ is not defined

# import numpy library
import numpy as np

# define numpy array
array = np.array([[12, 33], [21, 45]]) 

# print values in array format
print(array)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #defined
ADD COMMENT
Topic
Name
5+8 =