text_plain_output_1.png
import numpy as np

import numpy as np

import time

import time
import numpy as np
x = np.random.random(100000000)
start = time.time()
sum(x) / len(x)
start = time.time()
np.mean(x)

a = np.array([1, 2, 3, 4, 5])

print('rank: ', a.ndim)