> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-center-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-center-1/data-center/data-preparation/data-preparation-workspace/transforms/functions.md).

# Functions

![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FwtUEBMSElpGcx1UHA1ID%2Fimage.png?alt=media\&token=5c17c0e8-e797-455c-9b22-912b3ef8b850)

## Base 64 Decode

The ***Base64*** is a method of representing data in a binary format over text protocols. Text values are converted to binary values 0-63. This transformation helps the user to convert an input Base64 value to the text. The output type is String.

{% hint style="success" %}
*Check out the given walk-through on how to apply the Base64 Decode transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FSSsI4DJSOQTzlMm0DwO3%2Fbase_64_decode.gif?alt=media&amp;token=0ced8905-c62c-460e-bd77-52853a8d76d2" alt=""><figcaption><p><em><strong>Using Base 64 Decode Transform</strong></em></p></figcaption></figure>

Steps to perform the Base 64 Decode transformation:

* Select a String-based column in which the data is in the Base64 encrypted format.
* Open the ***Transforms*** tab.
* Select the ***Base64 Decode*** transform from the ***Functions*** category.
* Enable the ***Create new Column*** option.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F6YwfFjt5eNpqDQvyB5jg%2Fimage.png?alt=media&amp;token=c87d3680-236f-48f4-b007-8d0b8770b64d" alt=""><figcaption></figcaption></figure>

* The decoded data will be returned in a new column.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FLsRRxtvArI5n22KJPF7l%2Fimage.png?alt=media&amp;token=9fb4854c-cd40-4ded-a52d-bf5483421139" alt=""><figcaption></figcaption></figure>

## Base 64 Encode

This transformation helps to convert an input value to base64 encoding with optional padding with an equals sign (=). Input can be of any type. The output type is String.

{% hint style="success" %}
*Check out the given walk-through on how to apply the Base64 Encode transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fj2Oq6S4khd07aOGBsGyY%2Fbase_64_encode.gif?alt=media&amp;token=075c1abb-86e0-4400-b606-bd6f46e9db90" alt=""><figcaption><p><em><strong>Using Base 64 Encode Transform</strong></em></p></figcaption></figure>

Steps to perform the Base 64 Encode transformation

* Select a String based column.
* Open the ***Transforms*** tab.
* Select the ***Base64 Encode*** transform from the ***Functions*** category.
* Enable the Create new Column option.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fia5M0PJf5Cx03L4uTZUd%2Fimage.png?alt=media&amp;token=81b198e3-5cc6-4ccd-8ec0-2c4237fd0c88" alt=""><figcaption></figcaption></figure>

* The encoded data will be returned in a new column.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fc7NxXoahX2dIHIEDTnzY%2Fimage.png?alt=media&amp;token=2fbabdbe-2413-4376-9b49-40fb7b97b8f4" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The column with the encoded data gets added at the end of the dataset by default.*
{% endhint %}

## Ceiling Columns

This transformation helps to compute the **ceiling** of a value, which is the smallest integer that is greater than the input value. Input can be an Integer or a Decimal.

&#x20;Steps to perform the Ceiling Columns transformation

* Select an ***Integer*** or ***Decimal*** column from the dataset.
* Open the ***Transforms*** tab.
* Select the ***Ceiling Columns*** transform from the ***Functions*** category.
* Enable the ***Create New Column*** option to create a new column with the result value.
* Select a column using the drop-down menu.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FjWvncWtaaoafRdYtLryk%2Fimage.png?alt=media&amp;token=4aab32bb-8ac5-4256-8ca2-6bcf009d9d70" alt=""><figcaption><p><em><strong>Using the Ceiling columns</strong></em></p></figcaption></figure>

* As a result, a new column will get added to the dataset with the rounded values.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FJl34WRluG9iV71YRxOcq%2Fimage.png?alt=media&amp;token=550e540e-6984-4748-abff-984048860a86" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The Ceiling Columns transform supports measure values.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fn4OX4O3XZhdRss1jHlQr%2Fceiling%20column.gif?alt=media&amp;token=ffacca21-fd6c-4284-9f34-ed0a44503cc6" alt=""><figcaption><p><em><strong>Using Ceiling Columns Transform</strong></em></p></figcaption></figure>

## Copy Column

This transformation helps to duplicate the content of a column into another one.

&#x20; Steps to perform the transformation:

* Select a source column from the dataset.
* Open the ***Transforms*** tab.
* Select the ***Copy Column*** transform from the ***FUNCTIONS*** tab.
* Provide name for the new column.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FEFpYFLXa1OSAd0MLejX3%2Fimage.png?alt=media&amp;token=68892556-437a-4d27-ae51-a87ce6e333e9" alt=""><figcaption></figcaption></figure>

* Result will get displayed where the content is duplicated into a new one with a new column name.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FIlzfDrAKhn6W1oAhSvJi%2Fimage.png?alt=media&amp;token=b3667d85-3409-415d-88e7-bb3bbe73817e" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
*Check out the given walk-through on how to use the Copy Column transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fb4RgzNluvCnYAPv2DS0N%2FCopyofColumn.gif?alt=media&amp;token=df7c3f0c-7cd5-4585-9945-a7c781717345" alt=""><figcaption><p><strong>Using Copy  of Column Transform</strong></p></figcaption></figure>

## Count Distinct

This transformation helps to generate the count of distinct values in a specified column, optionally counted by the group.

Steps to perform the transformation:

* Select a ***Source*** column from the dataset.
* Select the ***Count Distinct*** transform from the ***FUNCTIONS*** category.&#x20;
* Provide a ***New Column*** name.
* Select the ***Group by*** Columns.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fjxa08jMb3SU5VC0riyne%2Fimage.png?alt=media&amp;token=d4c48f82-c2f5-49d3-97cd-db10882485e2" alt=""><figcaption></figcaption></figure>

* The result will appear in a new column for the selected group by column(s).

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FQBvvHklk5VZwYjgUHMwr%2Fimage.png?alt=media&amp;token=c5c8c5c6-f796-4e3c-bed9-1320d1cf89fb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*Check out the given illustration on how to apply the **Count Distinct** transform.*&#x20;
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FgzWG3LcYanifdInEp88F%2FCountDistinct.gif?alt=media&amp;token=69357636-e35c-4297-8903-b7ec86b57607" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The users can select multiple columns as Group By column while applying the Count Distinct transform.*
{% endhint %}

## Degree To Radians

The degree to radian data transformation is a simple mathematical conversion that allows you to convert angles from degrees to radians. Radians are another unit of measuring angles, and they are commonly used in advanced mathematics and physics because they have some convenient properties when working with circles and trigonometric functions.

The value can be a Decimal or Integer.&#x20;

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Input units are considered in degrees **dividing the value by 57.2957795***&#x20;
{% endhint %}

{% hint style="success" %}
*Check out the given illustration on how to use the Degree to Radians transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FsWBS8TdRKcHSq4bcHL9m%2Fdegree%20to%20radian.gif?alt=media&amp;token=026d4088-4bf1-439a-8bad-17acc8cf88ed" alt=""><figcaption><p><em><strong>Using Degree to Radians Transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a column from the dataset within the Data Preparation framework.
* Navigate to the ***Transforms*** tab.
* Open the ***Degree to Radians*** transform from the ***Functions*** category.
  * Select ***Create a New Column*** to create a new column with the transformed values.
  * Select one or multiple columns that need to get converted (Use Numerical Columns like int, float, decimal, etc.).
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FaknzoSX2t17JdI1RDJb1%2Fimage.png?alt=media&amp;token=3ad02bab-5e79-41d5-afd6-1793f81e77fa" alt=""><figcaption></figcaption></figure>

* Result will come as a different column with a prefix of radians for the selected column by converting the source column values into radians.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FLvRhOQ067G1FAMRMCbYX%2Fimage.png?alt=media&amp;token=256ade98-5584-4d4d-9c77-4360beacb10d" alt=""><figcaption></figcaption></figure>

## Get URL Parameters

This transform helps to extract the query parameters of a URL into an Object. The Object keys are the parameter's names, and their values are the parameter's values. Input values must be of URL or String type.

{% hint style="success" %}
*Check out the given illustration on how to use the Get URL Parameters data transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FoKqmHaq99TDLrmgW0nfK%2FGetURLParameters.gif?alt=media&amp;token=aea413a5-abcc-44f3-8f7f-04553da0eb43" alt=""><figcaption><p><em><strong>Using the Get URL Parameters</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a URL-based column having query parameters in it.
* Open the ***Transform*** tab.
* Click the ***Get URL Parameters*** transform from the ***FUNCTIONS*** category.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fm5wzjdjeefjANJlabtFK%2Fimage.png?alt=media&amp;token=b4dce49d-4456-41a0-904b-c6af9a632ee0" alt=""><figcaption></figcaption></figure>

* As a result, a new column gets added to the dataset with the extracted URL parameters.
  * Example: A Column having URL like: `http://example.com?color=blue;shape=square/;` then result will be: `{"color": "blue", "shape": "square"}`

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FiOcAwqRDF17psJkQpbLZ%2Fimage.png?alt=media&amp;token=ef44922f-3813-4abc-8188-46393180f353" alt=""><figcaption></figcaption></figure>

## If NULL

The ***If NULL*** function writes out a specified value if the source value is null. Otherwise, it writes the source value.

{% hint style="success" %}
*Check out the given illustration on how to use the If NULL transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FyByarAJEDgfQuxQAfw3l%2Fif_null.gif?alt=media&amp;token=509ce615-fb4a-48bc-b08f-07dc4c4798a7" alt=""><figcaption><p><em><strong>Applying the If NULL transform</strong></em></p></figcaption></figure>

Steps to perform the If NULL transform:

* Select a column that contains null cell(s).
* Open the ***Transforms*** tab.
* Click the ***If NULL*** transform from the ***FUNCTIONS*** category.
* Configure the below-given details:
  * Enable the ***Create New Column*** option to create a new column with the result values.
  * Select a  column using the drop-down option.
  * Provide the value to be added if null value is found in the source transform.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FIx0md9Ld8m2V5VrEY2nj%2Fimage.png?alt=media&amp;token=cf708569-7d3c-4967-8634-a033c3ce7b9d" alt=""><figcaption></figcaption></figure>

* ***Result:*** The selected value will get updated to that cell either as a new column or on the same column based on the saved configuration.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F3xPGUzCsaa4fEdLLNoKp%2Fimage.png?alt=media&amp;token=bbd6c54b-aab1-486b-bf2a-9f3576528fb7" alt=""><figcaption></figcaption></figure>

## If Then Else

This is used to return values according to the logical expression. If the test expression evaluates to true, the ***true\_expression*** is executed else the ***false\_expression*** is executed.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FgJ5MtqSHO3RICrcDDRI5%2FIfThenElse.gif?alt=media&amp;token=4275f012-4321-47d3-884b-4e88450badbb" alt=""><figcaption><p><em><strong>Applying the If Then transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a column from the dataset that contains binary values.
* Open the ***Transforms*** tab.
* Select the ***If Then Else*** transform from the ***FUNCTIONS*** categor&#x79;*.*
* Provide the following information:
  * &#x20;Provide New Column name for the column that appears with the transformed data.&#x20;
  * Provide the Logical expression in the **I*****f Value.***&#x20;
  * Provide the ***true\_exp*** and ***false\_exp*** respectively in the ***Then Value*** & ***Else Value*** fields.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FB786C4ozQtwPQQMVv6YI%2Fimage.png?alt=media&amp;token=663caff7-aa38-4744-8524-361831dbb162" alt=""><figcaption></figcaption></figure>

* Result will come in a different column (with the configured name as given for the new column).&#x20;
  * If the logical expression is true, then it will return the ***true\_exp*** else ***false\_exp***.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FgCty98lJ4KJ95haIZ9Eh%2Fimage.png?alt=media&amp;token=ed7e11fe-2f36-484f-9ad8-1ca7cd0eaf20" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*&#x20;

* *While passing logical expression it should be in the below-given format as given -below* &#x20;
  * Column Name =="Value of Column" (String columns)&#x20;
  * Column Name == Value of Column (Numeric columns)&#x20;
* The user can use any supported arithmetic operators (e.g., = =, <, >, <=, >=, !=)
  {% endhint %}

## IN

This is basically to check whether the combination of values exists in the selected column or not. If it is there then the function returns true else false.

{% hint style="success" %}
***Check out the given illustration on how to use IN transform***.
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FXuzR4dig22bt9lU9qQM8%2FIN_transformation.gif?alt=media&amp;token=eefa8f8d-00b9-473a-a8eb-2e1e4ce8c863" alt=""><figcaption><p><em><strong>Applying the IN Transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Navigate to the ***Transforms*** tab.
* Select the ***IN*** transform from the ***FUNCTIONS*** category.&#x20;
* Select one or multiple columns using the drop-down menu.
* Provide the values from the column (Use commas to separate multiple values).
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FAJBx3ea6yI16L0LWuuCz%2Fimage.png?alt=media&amp;token=bde1be55-5a6b-44a9-9232-ffb1e4020e1b" alt=""><figcaption></figcaption></figure>

* As a result a new column gets created with the result values. The result will return as ***True*** (for the values which are IN) else ***False***.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fjkv8q0ZTnSaTloZBB5gc%2Fimage.png?alt=media&amp;token=511e105c-4a9c-4b68-9e5a-baa590afff8f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> When selecting one column, it will check the complete column where those values are present or not.*
{% endhint %}

## Is Mismatched

The ***Is Mismatched*** function confirms whether a column of values does not contain the datatype is provided, then the function returns ***true*** or ***false***.

{% hint style="success" %}
*Check out the given illustration on how to use the **Is Mismatched** transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FjUwlDXSYlwEupE4Aow5y%2Fis_mismatched.gif?alt=media&amp;token=953c49d8-c058-4fe0-bb78-5e0c1b9ee0a7" alt=""><figcaption><p><em><strong>Applying the Is Mismatched Transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a column from the dataset.
* Open the ***Transforms*** tab.
* Select the ***Is Mismatched*** transform from the ***FUNCTIONS*** category.&#x20;
* Provide the datatype name which is required to confirm that doesn’t belong to that datatype. E.g., Datetime is the selected data type in the given example.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FJeu7C7wONHkVfguj8As6%2Fimage.png?alt=media&amp;token=5c8dde43-cfc8-4515-8076-3c169e19244a" alt=""><figcaption></figcaption></figure>

* Result will come in a different column if the datatype is mismatched then returns ***True*** else ***False***.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Foq8CIBsC9DfPZgntJ0Gk%2Fimage.png?alt=media&amp;token=884fc245-cc78-464f-93fd-2752124dd2f3" alt=""><figcaption></figcaption></figure>

## Is Missing

The ***Is Missing*** function tests whether a column of values is missing or null, then this function returns ***true*** or ***false***.

{% hint style="success" %}
Check out the given illustration on how to use Is Missing transform.
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F2J5K1hYQUmk1SvgLqfLJ%2Fis_missing.gif?alt=media&amp;token=a3c81980-7263-4df6-bcbf-7c2f7ca3bddb" alt=""><figcaption></figcaption></figure>

Steps to perform the transformation:

* Navigate to the dataset within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Is Missing*** transform from the ***FUNCTIONS*** category.&#x20;
* Select one or multiple columns that contain missing data.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F44lxWsJF9FgwRBSc57YW%2Fimage.png?alt=media&amp;token=68717c79-716a-4522-bac1-9bba76d8ac3d" alt=""><figcaption></figcaption></figure>

* Result will c~~o~~me in a different column. If values are missing from a cell, it returns ***True*** else ***False*** in the result column.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FaPAcGmE5y7I28uVJyLgd%2Fimage.png?alt=media&amp;token=56dc05a3-cb6c-4193-8f57-7520b2f36df4" alt=""><figcaption></figcaption></figure>

## Is NULL

The ***Is NULL*** function tests whether a column of values contain null values. For input column references, this function returns either ***True*** or ***false.***

{% hint style="success" %}
*Check out the given illustration on how to use the Is NULL transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FSNGXpfKnw0QpMbLnKkAf%2Fis_null.gif?alt=media&amp;token=ce90b536-dad9-4664-b16f-576218acd00d" alt=""><figcaption><p><em><strong>Applying the Is NULL transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Navigate to a Dataset in the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Is NULL*** transform from the ***FUNCTIONS*** category.&#x20;
* Select one or multiple columns (It supports all datatypes).
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FD0EMP3aAS21HUVJph78t%2Fimage.png?alt=media&amp;token=a013dd4b-c854-47b0-9703-60c056ea4776" alt=""><figcaption></figcaption></figure>

* Result will come in a newly added column.  If there is null value, it returns ***True*** else ***False.***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FA8ao99irEWFio5DiJorO%2Fimage.png?alt=media&amp;token=9d738193-5ad5-4843-830b-e43ac654a5b9" alt=""><figcaption></figcaption></figure>

## Is Valid

The ***Is Valid*** data transform is a data validation technique used to check the validity of data in a specific column in a dataset. Its primary purpose is to identify and flag data that may be erroneous (invalid) or missing. This transform results in a binary output, where the transformed column contains Boolean values (e.g., True or False) indicating whether each data point is valid or not.

{% hint style="success" %}
*Check out the given illustration on how to use Is Valid transform.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fl20rtS9mI1xLnu2pE0cb%2FIs%20Valid%20Transform.mp4?alt=media&token=ac4c295e-0396-4247-815e-6df79a9a0bdc>" %}
***Using the Is Valid transform***
{% endembed %}

Steps to perform the transformation:

* Navigate to a Dataset within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Is Valid*** transform.&#x20;
* Provide the datatype name which is required to confirm.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F9XUtOEntpn2HN47jsmGa%2Fimage.png?alt=media&amp;token=92f77c45-bb51-464a-8d29-a3937fb18068" alt=""><figcaption></figcaption></figure>

* Result will come in a different column. If it is a valid data returns ***True*** else ***False.***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FkKw6w7qkj5USANVspOup%2Fimage.png?alt=media&amp;token=dad9a402-9ac2-40ca-96ee-dce46983d356" alt=""><figcaption></figcaption></figure>

## Log of Column

The natural logarithm uses the base "e," which is approximately equal to 2.71828. The mathematical notation, the natural logarithm is represented as "ln."

{% hint style="success" %}
*Check out the given illustration on how to apply the Log of Column transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FXdH2HMqHHs0IfSdc1WYP%2Flog.gif?alt=media&amp;token=5b625e86-5e49-408f-9b8f-940f51a432b6" alt=""><figcaption></figcaption></figure>

Steps to perform the transformation:

* Select a column from the dataset within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Log of column*** transform from the ***FUNCTIONS*** category.
* Select the ***Create New Column*** option to create a new column with the result value&#x73;*.*
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F3BHfYL2DrNPAMSpobaAc%2Fimage.png?alt=media&amp;token=cb9e81d1-6d48-4863-97b7-0121ffa5fb05" alt=""><figcaption></figcaption></figure>

* Result will come in a different column with the log result of the source column.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FpImoWSCwbejtrTeyB0K6%2Fimage.png?alt=media&amp;token=16c807d3-dcac-45b5-830b-53715c60e5fb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
&#x20;*<mark style="color:green;">Please Note:</mark> The calculation format to be followed for the Log of Column transform is  **In(any value)** e.g., In(100).*
{% endhint %}

## Nest Column To Object/ Array

This is nesting one or more columns into an Array or Object column.

Steps to perform the transformation

*

<table data-header-hidden><thead><tr><th width="127"></th><th width="144"></th><th></th><th></th></tr></thead><tbody><tr><td>Col1</td><td>Col2</td><td>Result as Array</td><td>Result as Object</td></tr><tr><td>Val1</td><td>Val2</td><td>Val1,Val2</td><td>{‘Col1’:’Val1’,’Col2’:’Val2’}</td></tr></tbody></table>

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fe3oo5yPPFNe4T6HSlFr4%2Fnested_column.gif?alt=media&amp;token=ffbed46b-1260-48b5-b076-b0fd3a50be50" alt=""><figcaption><p><em><strong>Using</strong></em> <em><strong>Nest Column to Object/Array transform</strong></em></p></figcaption></figure>

* Select the ***Nest Column to Object/ Array*** transform.&#x20;
* Provide a name for the new column. It will be the result column.&#x20;
* Select one or multiple columns (The given example displays multiple column selection).
* Select the ***Nest Column*** ***to*** option as an ***Object*** or ***Array***. In the given image, the selected option is ***Object***.
* Click the ***Submit***.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FBFGi9n9BEPWHbIzZ6XO0%2Fimage.png?alt=media&amp;token=79f02140-3ffa-4efd-9bbe-9360c4699e48" alt=""><figcaption></figcaption></figure>

* Based on the selected ***Nest Column to*** option, the result will appear:

  * For ***Array*** with a square bracket&#x20;
  * For ***Object*** with curly brackets (as displayed in the below-given example):

  <figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FV7Sqisrj8uHRDZFyRf52%2Fimage.png?alt=media&amp;token=89e65d66-c419-4468-88d8-01a6558a89ed" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The result of the **Nest column to Array** transformation comes as list datatype & this datatype is not supported while loading the data in the datastore.*
{% endhint %}

## PI

The PI function generates the value of pi to 15 decimal places: 3.1415926535897932.

{% hint style="success" %}
*Check out the given illustration on how to apply the PI transformation.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FZQ6ONdPaA6EL77qutZug%2Fpi.gif?alt=media&amp;token=81cfda31-5169-4f8c-a8fa-40d69cb83366" alt=""><figcaption><p><em><strong>Using PI transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select the column from the dataset using the ***Data Preparation*** framework.
* Open the ***Transforms*** tab.
* Select the ***PI*** transform from the FUNCTIONS category.
* Provide the following information:
  * Provide a name for the New Column.
  * Provide value that behaves as the multiplicand.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FxAfJxK66nATsQVenQW7a%2Fimage.png?alt=media&amp;token=6d62b434-745e-4776-a24e-44f2f8c0ed62" alt=""><figcaption></figcaption></figure>

* Result will come in a newly added column where it will display ***pi to 15*** decimal places. E.g., Suppose values passed as 2 then the calculation will be as ***pi \* 2.***

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FQ25jPua2bQUacIDvbCHV%2Fimage.png?alt=media&amp;token=1faa3dbe-2bf7-4acd-afe7-32d3b6b0f947" alt=""><figcaption></figcaption></figure>

## Power of Column

The ***Power of Column*** data transform is a data manipulation technique used to raise a specific column of numerical data to a certain power. It is commonly employed in data preprocessing or data analysis tasks to modify the data in a meaningful way.

The general formula for the "Power of Column" transform is:

New Value=Original Value 〖^power〗

E.g., If value present in a column is 2, and the passed value as power is 3 then the result is 8.

where:

The ***New Value*** is the transformed value of the data after applying the power operation.&#x20;

* ***Original Value*** is the value in the original column.&#x20;
* ***Power*** is the exponent to which the "Original Value" is raised.&#x20;
* This transformation can be applied to any column in a dataset that contains numerical values. It is often used to address certain data distribution issues or to amplify or attenuate the values in the column, depending on the value of the power.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FeslvI1lcCO1WuZZWMUP3%2Fpower.gif?alt=media&amp;token=1fee6a10-607c-4aeb-8eb3-fda40d5ad0f4" alt=""><figcaption><p><em><strong>Using Power of Column transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a numerical column from the dataset within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Power To Column*** transform from the ***FUNCTIONS*** category.
* Provide the following information:
  * Enable the ***Create New Column*** (optional) to create a new column with the result values.
  * Provide value that will act as power on the values of the selected column.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fcu2lumWwGvubLDuydSV6%2Fimage.png?alt=media&amp;token=143e4d4d-83e9-4148-a517-42b32a3de664" alt=""><figcaption></figcaption></figure>

* Result will come in a different column or update on the same column (based on the configuration performed for this transform.&#x20;

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F6hwg2ypi4eEn5gGjvFlm%2Fimage.png?alt=media&amp;token=bb51086d-651a-4b90-98ac-b4482daddc39" alt=""><figcaption></figcaption></figure>

## Radians To Degree

This transformation helps to compute the degrees of an input value measuring the radians of an angle. The value can be a Decimal or Integer literal or a reference to a column containing numeric values.

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Input units are considered in radians, **Multiply the value by 57.2957795***<br>
{% endhint %}

{% hint style="success" %}
*Check out the given illustration on how to use **Radians To Degree** transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FfD3E7s4zGXalyfktWk3z%2Fradiatan%20to%20degree.gif?alt=media&amp;token=e65b9ab7-7c7d-4f19-9529-13fedea56f5c" alt=""><figcaption><p><em><strong>Using the Radians to Degree</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a dataset within the Data Preparation framework.
* Select the ***Transforms*** tab.
* Select the ***Radians To Degree*** transform from the ***FUNCTIONS*** category.
* Do the required configuration for the ***Radians to Degree*** transform:
  * Enable the  ***Create a New Column*** option to create a new column with the transformed data.
  * Select one or multiple columns that need to get converted (Use Numerical Columns like int, float, decimal, etc.).
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FJAQE940eeknhwGCaJsdZ%2Fimage.png?alt=media&amp;token=1971e15e-a494-4e49-9b7a-b0515159dab6" alt=""><figcaption></figcaption></figure>

* Result will come as a different column with a prefix of 'degree' for the selected column by converting it into degree (The calculation will be done by  multiplying the value by **57.2957795).**

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FKLf8rf5xpWFgD1z7amv8%2Fimage.png?alt=media&amp;token=67ba3cc3-e344-45f4-a80d-700dc5417457" alt=""><figcaption></figcaption></figure>

## Round Values for Columns

This transformation rounds input value to the nearest integer and it supports multiple columns at a single time.

Steps to perform the transformation:

* Select a dataset within the Data Preparation framework.
* Select the ***Transforms*** tab.
* Select one or multiple columns from the dataset where the round need to be performed.
* Select required precision.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F10LW42gardwpP6W9J5qm%2Fimage.png?alt=media&amp;token=58b8163e-ec89-46d8-b76c-81e14f2e9695" alt=""><figcaption></figcaption></figure>

* Result will come as a new column where rounded based on the precision value and input value round to the nearest integer.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FjaUjH0BwKhZpUyJWCxkB%2Fimage.png?alt=media&amp;token=0bdf7d33-b860-465f-a8b7-f59ccc55481b" alt=""><figcaption></figcaption></figure>

## Sign of Columns

This transformation computes the positive or negative sign of a given numeric value. The value can be a ***Decimal*** or ***Integer***. Please consider the following:

1. For positive values, this function returns 1.
2. For negative values, this function returns -1.
3. For the value 0, this function returns 0.

{% hint style="success" %}
*Check out the given illustration on how to use the Sign of Columns transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F8SVkI0Gss4KQqGyXVyOa%2Fsign.gif?alt=media&amp;token=03671038-8685-4ba1-b673-30d160b2d107" alt=""><figcaption><p><em><strong>Using Sign of Columns transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Open a dataset within the Data Preparation framework.
* Select the transform.
* Select one or multiple columns where the prefix is to be added (it can be any number-based columns).

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FWtHYfNVhGVKE4O8BsEoX%2Fimage.png?alt=media&amp;token=6024995f-d86c-477c-81a7-42873d249d13" alt=""><figcaption></figcaption></figure>

* Result will come as a new column where the function returns 1 for positive values, -1 for negative values, and 0 for value 0.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FWNVteLCMeUmB21gBtYsW%2Fimage.png?alt=media&amp;token=ef0ee5b2-c67d-4581-930f-989fce50fefb" alt=""><figcaption></figcaption></figure>

## Sqrt of Column

Computes the square root of the input parameter.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FWK5k83igB40WfephCeNn%2Fsqrt.gif?alt=media&amp;token=1be118d3-38c7-45d7-a0f8-b91fb93cdfe1" alt=""><figcaption><p><em><strong>Using the Sqrt of Column transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Select a column from a dataset within the Data Preparation framework.
* Select the ***Transforms*** tab.
* Select the ***Sqrt of Column*** transform from the ***FUNCTIONS*** category.
* Follow the given steps to configure the transform:
  * Select the Create new column (optional) to get the result data in a new column.
  * Provide the value.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F1KZ5wq26Q7kKcYQ6YgUB%2Fimage.png?alt=media&amp;token=66b6b8cf-8a98-4f2e-9c9d-2ad33656f16e" alt=""><figcaption></figcaption></figure>

* The result will come as a new column or update the same column with the sqrt of present value of the selected column.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FioyciA6GQLuup8PrcvOk%2Fimage.png?alt=media&amp;token=cb9aa2ac-54bf-49b4-b6f0-2ed95254100b" alt=""><figcaption></figcaption></figure>

## Trigonometric Functions

This transformation can be defined as the function of an angle of a triangle. It means that the relationship between the angles and sides of a triangle is given by these trig functions. The basic trigonometric functions are SIN, COS, TAN, SINH, COSH, and TANH.

{% hint style="success" %}
*Check out the given walk-through on how to use Trigonometric Functions transform.*
{% endhint %}

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FEz8DFLxZ5SRd1UZXzSKg%2Ftrignometric.gif?alt=media&amp;token=f0aa621e-8b21-44a1-98ad-ae90f0c693cf" alt=""><figcaption><p><em><strong>Using the Trigonometric Functions transform</strong></em></p></figcaption></figure>

Steps to perform the transformation:

* Navigate to a dataset within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Trigonometric Functions*** transform from the ***FUNCTIONS*** method.
* Provide the required information to apply the Transform:
  * Select one or multiple columns where the trigonometric functions need to be applied.
  * Select a Method from the drop-down menu.&#x20;
    * The Supported methods are: SIN, COS, TAN, SINH, COSH, TANH
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FjqAHSRe8vlp6qBsBjezt%2Fimage.png?alt=media&amp;token=070b72e9-c299-489c-9067-bb7e93782e1f" alt=""><figcaption></figcaption></figure>

* The result will come in a new column by converting to the respective (selected) trigonometric value.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FApYbQ530hjy07oxUmwHY%2Fimage.png?alt=media&amp;token=83ea1454-a1ae-4193-8859-fce907546d58" alt=""><figcaption></figcaption></figure>
