---
title: "Enhance Your Data Analysis with AI Endpoints on the Data Platform"
description: "No more worries about imperfect datasets: import, clean, and visualize your data with the Data Platform"
url: https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/tutorials-ai-endpoints
lang: pl
lastUpdated: 2026-09-14
---
> For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/pl/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/pl/llms-full.txt.

# Enhance Your Data Analysis with AI Endpoints on the Data Platform

## Objective

No more worries about imperfect datasets: import, clean, and visualize your data with the **Data Platform**. But that's not all! Benefit from detailed analysis thanks to AI and go even further by asking your LLM to find a Machine Learning rule that fits perfectly with your data.

This guide will demonstrate how to take advantage of [**AI Endpoints**](https://endpoints.ai.cloud.ovh.net/) to enhance your data analysis capabilities on the Data Platform. You'll learn how to start from scratch and generate meaningful predictions from your data.

Here you can find all the **resources** used (CSV files, Python scripts, etc.) for the purpose of this guide. Please download all required files before you begin:

| **Type**                             | **Name**                                                                                                                                                                           |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Source file                          | <a href="/images/public-cloud/data-platform/getting-further/ai-endpoints/resources/dirty_cafe_sales.csv" download>dirty\_cafe\_sales.csv</a>                                       |
| Preprocessing Python script          | <a href="/images/public-cloud/data-platform/getting-further/ai-endpoints/resources/custom_action_cafe_sales_processing.py" download>custom\_action\_cafe\_sales\_processing.py</a> |
| Preprocessing notebook & LLM request | <a href="/images/public-cloud/data-platform/getting-further/ai-endpoints/resources/cafe_sales_preprocessing.ipynb" download>cafe\_sales\_preprocessing.ipynb</a>                   |

![Introduction — Process overview](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/process-overview.png)
## Tutorial Steps

### step 1 - Upload CSV file

The first step is to access the [Connectors](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/landing-page-connectors.md), create a new source, and choose `File Upload` to upload the CSV file. For the purpose of this guide we will be using the - _Dirty Cafe Sales Dataset_

![step 1 - Upload CSV file — Ai endpoints step](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-1.png)
### step 2 - Analyze the source and define blueprint rules

Access the [Analyser](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/landing-page-connectors-analyzer.md) from the Connectors and click on the newly added source to extract the metadata.

![step 2 - Analyze the source and define blueprint rules — Ai endpoints step](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-2.png)
Once complete you can start to define the following [blueprint rules](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/connectors-analyzer-blueprint-rules.md) for each of the mentioned attributes:

| **Attribute**         | **Blueprint rule**                                                                                   |
| --------------------- | ---------------------------------------------------------------------------------------------------- |
| **payment\_method**   | - **Skip line** if _Is null_ - **Skip line** if _Equal_ "ERROR" - **Skip line** if _Equal_ "UNKNOWN" |
| **location**          | - **Skip line** if _Is null_ - **Skip line** if _Equal_ "ERROR" - **Skip line** if _Equal_ "UNKNOWN" |
| **transaction\_date** | - **Skip line** if _Is null_ - **Skip line** if _Equal_ "ERROR" - **Skip line** if _Equal_ "UNKNOWN" |

![step 2 - Analyze the source and define blueprint rules — Ai endpoints step (2)](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-3.png)
### step 3 - Create table from source

1. Open the tables section by going to the [Lakehouse Manager](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/landing-page-lakehouse-manager.md).
2. Click on **Create from a Connectors source** and select the source _`dirty cafe sales.csv`_.
3. Name it dirty\_cafe\_sales (default name)
4. Click on **Create** to build and create the table.
5. Verify that the table has been created correctly. If there are any issues, check the logs for errors.

![step 3 - Create table from source — Ai endpoints step](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-4.png)
### step 4 - Duplicate the table

Duplicate this table to get a new empty table with the same attributes and name it `clean_cafe_sales`. Launch the "Build" and check that everything's okay after completion.

![step 4 - Duplicate the table — Ai endpoints step](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-5.png)
![step 4 - Duplicate the table — Ai endpoints step (2)](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-6.png)
![step 4 - Duplicate the table — Ai endpoints step (3)](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-7.png)
:::info
As noted, the duplicated table is currently empty. This occurs because only the table attributes have been duplicated, while the corresponding data still needs to be loaded separately.
:::

### step 5 - Create an empty table for future data visualization

Create a new empty table called `clean_dataset_history` and add the following attributes:

:::info
**Tip**: You can switch to the Canvas view to easily drag and drop the attributes, instead of creating them individually.
:::

- item
- location
- payment\_method
- quantity
- total\_spent
- transaction\_date

### step 6 - Create new attributes

Head to the [Attributes](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/lakehouse-manager-attributes.md) in the Lakehouse Manager, create new Virtual Attributes for data visualization:

| **Attribute Name**                      | **Virtual Attribute Definition**                                                                                                 |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **avg\_quantity\_per\_day\_per\_item**  | SUM(CAST(quantity AS DECIMAL(10,2))) / COUNT(DISTINCT CONCAT(CAST(transaction\_date AS VARCHAR), CAST(item AS VARCHAR)))         |
| **avg\_sales\_per\_day\_per\_item**     | SUM(CAST(total\_spent AS DECIMAL(10,2))) / COUNT(DISTINCT CONCAT(CAST(transaction\_date AS VARCHAR), CAST(item AS VARCHAR)))     |
| **avg\_sales\_per\_day\_per\_location** | SUM(CAST(total\_spent AS DECIMAL(10,2))) / COUNT(DISTINCT CONCAT(CAST(transaction\_date AS VARCHAR), CAST(location AS VARCHAR))) |
| **yearmonth**                           | SUBSTR(CAST(transaction\_date AS VARCHAR), 1, 7)                                                                                 |

it should look like so:

![step 6 - Create new attributes — Ai endpoints step](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-9.png)
## Processing Options

You now have two options to process and analyze your data:

### Option 1: Automated Processing (Steps 7-9)

- Automate processing with workflow and visualize data for custom analysis
- Create a Data Processing workflow with custom action using a Python script + an Aggregate action (for automation and efficient dataset processing)
- Create Queries from Analytics Manager to do data visualization using the previously created attributes

### Option 2: Step-by-Step Processing with LLM (Steps 10-11)

- Process data step-by-step and benefit from LLM API endpoints for a complete data analysis
- Use a Jupyter notebook to process your dataset step-by-step
- Benefit from powerful LLMs available on AI Endpoints to do a complete data analysis and generate a report

## Option 1: Automated Processing

### step 7 - Clean dataset using your own data processing workflow

If you want to process data quickly and be able to launch it with a single click, you can create a workflow with custom and aggregate actions from the [Data Processing Engine](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/landing-page-dpe.md).

1. **First, create a new "Custom" action:**

- Upload your Python file `custom_action_cafe_sales_processing.py`
- name the custom action as `cafe_sales_data_processing`
- Choose Python 3.9 version
- Add `numpy` and `pandas` dependencies (type in the library name and press enter) and click on **Create**
- Now you can **RUN** the custom action.

![step 7 - Clean dataset using your own data processing workflow — Ai endpoints step](/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-10.png)
Also, you should see logs similar to below to double check if what you have done is correct:

```
2025-02-27 08:59:09 [NOTICE] "cafe_sales_data_processing" SUBMITTED
2025-02-27 08:59:09 [NOTICE] "cafe_sales_data_processing" QUEUED
2025-02-27 08:59:10 [NOTICE] "cafe_sales_data_processing" BUILD SUBMITTED
...
2025-02-27 09:00:41 [NOTICE] "cafe_sales_data_processing" Stop cleaning
2025-02-27 09:00:41 [NOTICE] "cafe_sales_data_processing" END (custom) action. Duration: 6.65 sec
...
2025-02-27 09:00:44 [NOTICE] "Flush dataplant cache" END (forepaas-flushall) action. Duration: 2.14 sec
```

2. **Then, create the "Aggregate" action as follows:**

   - Configure the aggregate action settings according to your requirements

   <img className="thumbnail" alt="step 7 - Clean dataset using your own data processing workflow — Ai endpoints step (2)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-11.png" loading="lazy" />

3. **Then, create the "Delete" action as follows:**

   - Configure the delete action settings according to your requirements (this action will ensure you are using a clean table every time)

   <img className="thumbnail" alt="step 7 - Clean dataset using your own data processing workflow — Ai endpoints step (3)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-12.png" loading="lazy" />

4. **Finally, define the processing workflow:**

   - Set up your workflow to connect the delete, custom action and aggregate action

   <img className="thumbnail" alt="step 7 - Clean dataset using your own data processing workflow — Ai endpoints step (4)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-13.png" loading="lazy" />

Your dataset is now clean.

### step 8 - Explore clean tables

Now, you can check if everything's okay:

1. **From the Lakehouse Manager Tables**, you should see your created tables

   <img className="thumbnail" alt="step 8 - Explore clean tables — Ai endpoints step" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-14.png" loading="lazy" />

2. **From the Lakehouse Manager [Explorer](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/lakehouse-manager-explorer.md)**, you can explore the `clean_cafe_sales` table

   <img className="thumbnail" alt="step 8 - Explore clean tables — Ai endpoints step (2)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-15.png" loading="lazy" />

### step 9 - Data visualization using custom attributes

Now we can take an even more closer look at our data visually with the help of [queries](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/analytics-manager-queries.md) in the [Analytics Manager](https://docs.ovhcloud.com/pl/guides/public-cloud/data-platform/landing-page-analytics-manager.md)

1. **Create quantity\_per\_item query**

   - You should see the average quantity sold per day for each item

   <img className="thumbnail" alt="step 9 - Data visualization using custom attributes — Ai endpoints step" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-16.png" loading="lazy" />

2. **Create total\_spent\_per\_item query**

   - You could see the average total amount sold per day for each item

   <img className="thumbnail" alt="step 9 - Data visualization using custom attributes — Ai endpoints step (2)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-17.png" loading="lazy" />

3. **Create sales\_per\_location query**

   - You could see the average total amount sold per day for each location

   <img className="thumbnail" alt="step 9 - Data visualization using custom attributes — Ai endpoints step (3)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-18.png" loading="lazy" />

You can go further by creating more queries and then add them to a Dashboard which you can then share with others.

## Option 2: Step-by-Step Processing with LLM

### step 10 - Clean dataset and save it into S31
 bucket
If you want to follow the data cleaning process step by step, you can create a new notebook from the Data Processing service.

1. **Create a "Base notebook" with:**

   - Python 3.9 version
   - Install `numpy`, `pandas`, `matplotlib`, and `seaborn` dependencies

   <img className="thumbnail" alt="step 10 - Clean dataset and save it into S3 bucket — Ai endpoints step" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-19.png" loading="lazy" />

2. **Drag and drop the or click upload, to upload the file `cafe_sales_preprocessing.ipynb` into the jupyterhub file siebar**

   <img className="thumbnail" alt="step 10 - Clean dataset and save it into S3 bucket — Ai endpoints step (2)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-20.png" loading="lazy" />

### step 11 - One-shot data analysis with LLM AI Endpoints

A single request is enough to generate all the Python code you need for dataset analysis!

1. **Use the Llama 3.3 70B Instruct model** with the Python code that will allow you to analyze your dataset easily

2. **Generate an AI Endpoints API key** and use it in the designated line as seen below in the screenshot

   - Access [here](https://endpoints.ai.cloud.ovh.net/)

   <img className="thumbnail" alt="step 11 - One-shot data analysis with LLM AI Endpoints — Ai endpoints step" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-21.png" loading="lazy" />

   <img className="thumbnail" alt="step 11 - One-shot data analysis with LLM AI Endpoints — Ai endpoints step (2)" src="/images/public-cloud/data-platform/getting-further/ai-endpoints/picts/ai-endpoints-step-22.png" loading="lazy" />

3. **Use the generated Python code** to analyze your data and display graphs

The advantage of asking an LLM to generate code in Python is that you will be able to reuse it when you add new data to your coffee sales in subsequent months, ensuring a consistent analysis method.

## Go further

If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/pl/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.

Ask questions, give your feedback and interact directly with the team building the Data Platform on the dedicated [Discord channel](https://discord.gg/ovhcloud).

If you need support with your OVHcloud services, create a request in our [Help Centre](https://help.ovhcloud.com/csm?id=csm_get_help).

Join our [community of users](https://community.ovhcloud.com/).

1
: S3 is a trademark of Amazon Technologies, Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.