transform log over entire data in python using numpy code example Example: numpy log import numpy as np lg = np.log(2.0)