# Stage I: Defining and Understanding the Dataset

In the data cleaning workflow, the user inputs:

1. Unclean data sample in `.csv` / `.json` data type.
2. Optionally data descriptive tags that describes the domain origin of the dataset e.g. financial, sales, stock market data etc.&#x20;

It is worthy noting what is truly expected from digesting "unclean" dataset or in other words, what makes a data "unclean"?&#x20;

> *"You never know unless you try - even if you are unsure, just pick one and go for it."*
>
> — *Every Maths Professor Go-to Line (aka my dilemma)*

The process usually starts by treating each cleaning stage as a kind of hypothesis test—posing a null case and deciding whether to reject or accept it using the right method. Along the way, a few truths about unclean data show up almost every time:

* Data types are rarely consistent or correct.
* Missing values creep into most columns.
* Duplicated rows (and sometimes even whole columns) are hiding in plain sight.
* Anomalies and outliers are just as common as missing values.

## Persistent Data Profiling Examples

<figure><img src="/files/UTKr9fPu5jiZFJ22zOuT" alt=""><figcaption><p>Example of uncleaned dataset passed to agent.</p></figcaption></figure>


---

# 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://whoamimi.gitbook.io/blog/projects/readme-1/gaby-ai-agent-features/data-cleaning/stage-i-defining-and-understanding-the-dataset.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.
