text_plain_output_1.png
import numpy as np

import time

import time
import numpy as np
x = np.random.random(100000000)
start = time.time()
sum(x) / len(x)
print('using built-in python function: ', time.time() - start)
start = time.time()
np.mean(x)
print('using NumPy: ', time.time() - start)