log10 function

The log10 function returns the logarithm (to the base 10) of each row of the column.


Parameters

log10(column)

Parameter

Description

column

The attribute used to evaluate the logarithm to the base 10. Its type must be numeral. The column parameter is mandatory.


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 calculate the logarithm to the base 10 of the Customer_Age attribute.

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