#!/usr/bin/env python3 import numpy as np arr = np.arange(0,20,2) print(arr) # [ 0 2 4 6 8 10 12 14 16 18] # Random values in a given shape. arr_flot = np.random.rand(4,3) print(arr_flot) arr_ent = np.random.randint(100, size=(2,3)) print(arr_ent) arr_6 = np.full((3,3),6) print(arr_6) ''' [[6 6 6] [6 6 6] [6 6 6]] ''' arr = np.append(arr, [12,13,14,51]) print(arr) # [ 0 2 4 6 8 10 12 14 16 18 12 13 14 51] np.insert(arr,2, [42,34]) np.insert(arr_6,2, [1,2,4]) np.delete(arr_ent,0,axis=1)