# Dataset

`iota.session.Dataset()`

**Description** Iota Dataset object

> **Note:** This class is different than [iota.Dataset](datasets).

**Methods**

* [`data`](#data)
* [`delete`](#delete)

&#x20;**Variables**

* `name` (str) file name
* `description` (str) file description
* `id` (int) file Id
* `data_format` (str) dataset format
* `loaded` (bool) check if dataset is already loaded
* `metafile` (str) json file contained the metadata of the dataset

## Methods

### [data()](#data) <a href="#data" id="data"></a>

_Load the data contained in the dataset file_ _Returns a class_ [_**iota.Dataset**_](datasets)

**Example**

```python
dataset_record = my_scenario.get_dataset(
    name = 'my dataset',
    data_format = 'PADEM'
    )
dataset = dataset_record.data()
print('Number of timesteps in the dataset: {}'.format(len(dataset.timesteps)))
```

### [delete()](#delete) <a href="#delete" id="delete"></a>

_Remove dataset from the project_

**Example**

```python
dataset_record = my_scenario.get_dataset(
    name = 'my dataset',
    data_format = 'PADEM'
    )
dataset_record.delete()
```
