sin function

The sin function returns the sine of each row of the column.


Parameters

sin(column)

Parameter

Description

column

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


Example

The following example uses the Top hits Spotify 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 fill a new column with the sine of the key attribute.

Add a new column, then type the following formula: sin($"key")