to use natural log in python just use log().By using log() you can use natural log in python. The natural log of a number has base e where e = 2.718. so lets learn about of this by given example: import numpy var = numpy.log(2) print(var) Output : 0.6931471805599453