# Add data to a Dataset

### With the Platform

In order to add assets to a dataset, you need to go to your "Datalake" page and select the assets that you want to add.&#x20;

![](/files/-McA6FLH3XQkGEpj5_63)

Then click on  "add to dataset"&#x20;

You can then select the target dataset to import assets

Then select the specific version to add images.

### With Python SDK

```python
pip install picsellia
```

First make sure that you have Picsellia Python package installed&#x20;

then you will need to initialize the Client with your API Token, available in you profile page.

```python
from picsellia.client import Client
clt = Client(api_token="your token")
```

you can now search for some assets on your lake with the datalake.fetch() method:

```python
pictures = clt.datalake.picture.fetch(quantity=1, tags=['tag1'])
```

You can use Client.datalake.pictures.status() to vizualize the fetched assets &#x20;

then you can add data to your dataset

```python
clt.datalake.dataset.add_data(name='dataset2', 
                            version='latest',
                            pictures=pictures)

```

You can find a complete reference to the SDK [here](/picsellia/references-1/python-sdk-reference-1.md#add_data).


---

# 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://picsellia.gitbook.io/picsellia/data-management/add-data-to-a-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.
