log function in the Factory

The log function returns the natural logarithm of each row of the column.


Parameters

log(column)

Parameter

Description

column

The attribute used to evaluate the natural logarithm. Its type must be numeral.


Example

The following example uses the Bike Sales dataset.

This example isn’t based on a real scenario, it only explains how to use the function.

Description

Screenshot

In this example, we want to retrieve the logarithm of the Customer_Age attribute.

Add a new attribute, then type the following formula: log($"Customer_Age")

As you can see, the attribute has been filled with the logarithm of the Customer_Age attribute’s values.