Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
! pip install jovian --upgrade
import jovian
Section 1
- Creating numpy arrays from Python Lists
- Creating numpy arrays from scratch
- Creating an array with sequence of numbers
- Creating an array of Random numbers
import numpy as np
#Creating Arrays from Python Lists
# integer array:
np1 = np.array([1, 4, 2, 5, 3])
#float type:
np2 = np.array([1, 2, 3, 4], dtype='float32')
print("Integer numpy array",np1)
print("Float type numpy array",np2)
Integer numpy array [1 4 2 5 3]
Float type numpy array [1. 2. 3. 4.]