tan function in the Factory
The tan function returns the tangent of each row of the column.
Parameters Parameter Description column The attribute used to evaluate the tangent. 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 calculate the tangent of the tempo attribute. Add a new column, and type the following formula: tan(column)
tan($"tempo")