> For the complete documentation index, see [llms.txt](https://docs.sdv.dev/rdt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sdv.dev/rdt/transformers-glossary/ordinal.md).

# Ordinal

Ordinal columns contain distinct categories. The defining aspect of an ordinal column is that there is **a set number of predefined categories** and that **there is an order between the values**.

<figure><img src="https://2225246359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVGX92M819eIp0rMg5elc%2Fuploads%2FB4vTINGfgclVZplpYEW2%2Fordinal_sdtype.png?alt=media&amp;token=3abed05a-d430-46af-ba99-37dc8561681d" alt=""><figcaption><p><em>For example, you might be storing satisfaction ratings from your customers. These ratings are provided as discrete buckets, but they have an order: <code>strongly_agree</code> means you are more satisfied than <code>agree</code>, and so on.</em></p></figcaption></figure>

## General Ordinal Transformers

These transformers encode your ordinal values as numerical values, ready for data science and machine learning.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="https://docs.sdv.dev/rdt/transformers-glossary/ordinal/orderedlabelencoder.md"><strong>OrderedLabelEncoder</strong></a></td><td>Encode categories as numerical labels using a pre-determined order.</td><td><a href="https://docs.sdv.dev/rdt/transformers-glossary/ordinal/orderedlabelencoder.md">OrderedLabelEncoder</a></td></tr><tr><td><a href="https://docs.sdv.dev/rdt/transformers-glossary/ordinal/ordereduniformencoder.md"><strong>OrderedUniformEncoder</strong></a></td><td>Encode categories as a smooth distribution using a pre-determined order. Useful for imbalanced values.</td><td><a href="https://docs.sdv.dev/rdt/transformers-glossary/ordinal/ordereduniformencoder.md">OrderedUniformEncoder</a></td></tr></tbody></table>

## Differential Privacy Transformers

These transformers use differential privacy techniques to add noise or reshape your column of ordinal data. As a result, your column — and any statistics about it — can be shared with differential privacy guarantees.

{% hint style="info" %}
❖ **SDV Enterprise Bundle**. This feature is available as part of the **Differential Privacy Bundle**, an optional add-on to SDV Enterprise. For more information, please visit the [Differential Privacy Bundle](https://docs.sdv.dev/sdv/reference/explore-sdv/differential-privacy-bundle) page. *Coming soon!*
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>❖ <a href="https://docs.sdv.dev/rdt/transformers-glossary/ordinal/dporderedecdfnormalizer.md"><strong>DPOrderedECDFNormalizer</strong></a></td><td>Normalize ordered data by computing CDF function and adding noise.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sdv.dev/rdt/transformers-glossary/ordinal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
