Sanitize column names
This transform or template sanitizes the column names. Any column names in the dataset consisting of special characters are removed after executing this sanitize column names transform.
tags: [“Data Preparation”]
Parameters
The table gives a brief description about each parameter in Sanitize column names transform.
- Name:
By default, the transform name is populated. You can also add a custom name for the transform.
The sample input for this transform looks as shown in the screenshot:
The output after running the Replace with Dictionary transform on the dataset appears as below:
How to use it in Notebook
The following is the code snippet you must use in the Jupyter Notebook editor to run the Sanitize column names transform:
Requirements
pandas