# ＊ DomainExtractor

{% hint style="info" %}
**＊SDV Enterprise Feature.** This feature is available to our licensed users and is not currently in our public library. For more information, visit our page to [Explore SDV](https://docs.sdv.dev/sdv/explore/sdv-enterprise/compare-features).
{% endhint %}

The `DomainExtractor` extracts domains from emails so that they can be used later for data science. It keeps the original emails so that the same exact emails can be recovered during the reverse transform.

<figure><img src="/files/Ng3gl6xyy340ElmX82sv" alt=""><figcaption></figcaption></figure>

```python
from rdt.transformers.email import DomainExtractor

transformer = DomainExtractor()
```

## Parameters

**`extracted_domain`**: Which parts of the overall email domain to extract during the transformation phase

<table data-header-hidden><thead><tr><th width="186"></th><th></th></tr></thead><tbody><tr><td>(default) <code>'full'</code></td><td>Extract the full domain, which is everything after the <strong>@</strong> sign. For example if the email is <code>'info@datacebo.com'</code>, the full domain is <code>'datacebo.com'</code>.</td></tr><tr><td><code>'top'</code></td><td>Extract only the top domain, which is everything after the <strong>.</strong> character. For example if the email is <code>'info@datacebo.com'</code>, the top domain is <code>'com'</code>.</td></tr></tbody></table>

### Examples

```python
from rdt.transformers.email import DomainExtractor

transformers = DomainExtractor(extracted_domain='top')
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sdv.dev/rdt/transformers-glossary/deep-data-understanding/email/domainextractor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
