TypeError: cannot convert the series to September 25, 2023 by Tarik You can use numpy.log instead. Math.log is expecting a single number, not array.