Other Operations Guide: Encoding, Boolean, Text, Format, and Advanced Tools
A guide to 17 operations: encoding (Label, One-Hot, Ordinal, Target), boolean (AND, OR, NOT, XOR), text (Stop Words, Cleaning, Tokenization), numerical format (Decimal, Currency, Percentage), and advanced (Formula Builder, Regex, Custom Function).
Other Operations Guide: Encoding, Boolean, Text, Format, and Advanced Tools
This guide covers 17 operations across five categories. Each section explains what the tool does, when to use it, and how to run it.
---
Category 1: Encoding (4 Operations)
1. Label Encode
What it does: Converts text categories to numbers (0, 1, 2, …) based on alphabetical order or frequency.
When to use: Tree-based models (Random Forest, XGBoost) that work with ordinal-like encodings. Quick way to turn categories into numbers.
Step-by-step:
- Select the categorical column.
- Choose Label Encode.
- Optionally choose order (alphabetical or by frequency).
- Click Apply.
2. One-Hot Encode
What it does: Creates one binary column per category. Each row gets 1 in the matching column, 0 elsewhere.
When to use: Linear models, neural networks, or when categories have no natural order.
Step-by-step:
- Select the categorical column.
- Choose One-Hot Encode.
- Optionally drop first column to avoid multicollinearity.
- Click Apply.
3. Ordinal Encode
What it does: Like Label Encode, but you define the order explicitly (e.g., Small < Medium < Large → 1, 2, 3).
When to use: Categories have a clear order (education level, satisfaction scale, size).
Step-by-step:
- Select the column.
- Choose Ordinal Encode.
- Define the order (drag to reorder or type values).
- Click Apply.
---
4. Target Encode
What it does: Replaces each category with the average of the target variable for that category. Useful for high-cardinality categories.
When to use: Many unique categories (e.g., product IDs, zip codes) where One-Hot would create too many columns.
Step-by-step:
- Select the categorical column.
- Choose Target Encode.
- Select the target column (the one you want to predict).
- Optionally apply smoothing to handle rare categories.
- Click Apply.
---
Category 2: Boolean (4 Operations)
5. AND
What it does: Combines two or more true/false columns. Result is true only when all are true.
When to use: Filtering with multiple conditions (e.g., "Active AND Premium").
Step-by-step:
- Choose Boolean > AND.
- Select the boolean columns.
- Name the new column and click Apply.
| A | B | A AND B |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
6. OR
What it does: Combines two or more true/false columns. Result is true when at least one is true.
When to use: "Include if A or B" (e.g., "Email or SMS opted in").
Step-by-step:
- Choose Boolean > OR.
- Select the boolean columns.
- Name the new column and click Apply.
| A | B | A OR B |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | T |
| F | F | F |
7. NOT
What it does: Flips each value. True becomes false, false becomes true.
When to use: Inverting a flag (e.g., "IsInactive" from "IsActive").
Step-by-step:
- Select the boolean column.
- Choose Boolean > NOT.
- Click Apply.
| Active | Not Active |
|---|---|
| T | F |
| F | T |
8. XOR (Exclusive OR)
What it does: True when exactly one of the two inputs is true. False when both are the same.
When to use: "One or the other, but not both" (e.g., "Changed A or B, but not both").
Step-by-step:
- Choose Boolean > XOR.
- Select the two boolean columns.
- Click Apply.
| A | B | A XOR B |
|---|---|---|
| T | T | F |
| T | F | T |
| F | T | T |
| F | F | F |
Category 3: Text (3 Operations)
9. Stop Words
What it does: Removes common words (the, a, is, and, etc.) from text. Used to focus on meaningful terms.
When to use: Text analysis, word clouds, or keyword extraction. Reduces noise from filler words.
Step-by-step:
- Select the text column.
- Choose Stop Words.
- Select a language (English, etc.) or custom list.
- Optionally add/remove words.
- Click Apply.
10. Text Cleaning
What it does: Applies several cleaning steps: lowercase, remove special characters, trim, collapse spaces, remove numbers (optional).
When to use: Preparing text for NLP, search, or analysis. Standardizes messy input.
Step-by-step:
- Select the column.
- Choose Text Cleaning.
- Check the options you want (lowercase, remove punctuation, etc.).
- Click Apply.
11. Tokenization
What it does: Splits text into words or sub-word units. Creates a list of tokens per row.
When to use: First step for many NLP tasks: word frequency, bag-of-words, or feature extraction.
Step-by-step:
- Select the text column.
- Choose Tokenization.
- Choose method: by word, by character, or custom delimiter.
- Optionally filter by length.
- Click Apply.
---
Category 4: Numerical Format (3 Operations)
12. Decimal Format
What it does: Formats numbers to a fixed number of decimal places for display. Does not change the underlying value.
When to use: Reports, exports, or when you need consistent decimal display (e.g., 2 or 4 decimals).
Step-by-step:
- Select the numeric column.
- Choose Decimal Format.
- Enter the number of decimal places.
- Choose rounding mode if needed.
- Click Apply.
---
13. Currency Format
What it does: Formats numbers as currency with symbol, thousands separator, and decimal places.
When to use: Displaying prices, revenue, or financial values in reports.
Step-by-step:
- Select the column.
- Choose Currency Format.
- Select currency (USD, EUR, etc.) or enter a custom symbol.
- Choose decimal places.
- Click Apply.
---
14. Percentage Format
What it does: Formats numbers as percentages. Can multiply by 100 and add the % symbol, or just add the symbol.
When to use: Displaying rates, proportions, or completion percentages.
Step-by-step:
- Select the column.
- Choose Percentage Format.
- Choose whether values are already 0–1 (e.g., 0.5) or 0–100 (e.g., 50).
- Enter decimal places.
- Click Apply.
---
Category 5: Advanced (3 Operations)
15. Formula Builder (Reference)
What it does: Lets you write custom formulas using column names and math/string functions. Like a spreadsheet formula.
When to use: Custom calculations not covered by built-in operations (e.g., complex conditions, nested logic).
Step-by-step:
- Choose Formula Builder.
- Select or type the formula (e.g.,
Revenue - Cost,IF(A > 0, "Yes", "No")). - Use the function reference for available functions.
- Name the new column and click Apply.
---
16. Regular Expression
What it does: Uses regex patterns to find, extract, or replace text. Powerful for complex text patterns.
When to use: Extracting phone numbers, emails, codes, or any structured pattern that simple operations cannot handle.
Step-by-step:
- Select the text column.
- Choose Regular Expression.
- Enter the regex pattern (e.g.,
\\d{3}-\\d{4}for phone). - Choose action: extract, replace, or match.
- Click Apply.
\\d{5} from "Zip: 90210" → "90210"
---
17. Custom Function
What it does: Runs user-defined code (e.g., Python or JavaScript) on each row or column. For advanced users.
When to use: Logic that cannot be expressed with built-in operations or formulas.
Step-by-step:
- Choose Custom Function.
- Write your function (follow the platform's API).
- Specify input columns and output.
- Test on a sample, then click Apply.
---
Quick Reference
| Category | Operations |
|---|---|
| Encoding | Label, One-Hot, Ordinal, Target |
| Boolean | AND, OR, NOT, XOR |
| Text | Stop Words, Text Cleaning, Tokenization |
| Num Format | Decimal, Currency, Percentage |
| Advanced | Formula Builder, Regular Expression, Custom |
What's Next?
- [Data Operations Guide](data-operations-guide) – Filter, encode, transpose
- [Formula Builder Guide](formula-builder-guide) – Custom formulas in detail
- [Math Operations Guide](math-operations-guide) – Arithmetic and scaling
Related Articles
Data Operations Guide: All 15 Transformations Explained
A complete guide to all 15 data operations: label encode, one-hot encode, filter, transpose, rename, date conversion, concatenate, cross tab, rename factor, impute, grouping, drop duplicates, ignore column, delete missing, and data table view.
Formula Builder: Calculated Columns and Expressions
Build powerful calculated columns using column references, pipe chaining, and 70+ functions across String, Math, Date, Aggregation, Finance, and Geo categories.
Math Operations Guide: All 12 Numeric Transformations
A complete guide to arithmetic, binning, log transform, power, round/ceil/floor, standardize, normalize, sign, Box-Cox/Yeo-Johnson, and cumulative operations.
Was this helpful?