Run »
import numpy as np arr = np.arange(1, 10) print(np.log(arr))
[0. 0.69314718 1.09861229 1.38629436 1.60943791 1.79175947 1.94591015 2.07944154 2.19722458]