how can i calculate logarithm return of a list object in python code example Example: numpy log import numpy as np lg = np.log(2.0)