SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Data Science 1 exam

» Start this Course
(Practice similar questions for free)
Question:

Create Numpy

Author: Jessica Ruvalcaba



Answer:

Import numpy as np # Add the NumPy module with alias aName0 = np.array(25) #create a 0_d array aName = np.array([1,2,3,4,5,6,7,8]) # create a 1-D numpy array. Made up of 0-D arrays aName2 = np.array([[1,2,3,4],[5,6,7,8]]) # create a 2-D array. Made up of 1-D arrays


0 / 5  (0 ratings)

1 answer(s) in total