# DatasetCompact

Lightweight dataset representation for listing and basic operations.

A minimal dataset object containing only essential identifiers. Used by various operations to efficiently reference datasets without fetching full dataset details and metadata.

This class provides a memory-efficient way to work with dataset references when you don't need the full dataset functionality but want to access basic information or fetch the complete dataset when needed.

## Example

```python
# From dataset references in other entities
baseline = Baseline.get(id_="baseline-uuid")
dataset_ref = baseline.dataset  # Returns DatasetCompact

# Access basic info
print(f"Dataset: {dataset_ref.name}")
print(f"ID: {dataset_ref.id}")

# Fetch full details when needed
full_dataset = dataset_ref.fetch()
print(f"Rows: {full_dataset.row_count}")
print(f"Model: {full_dataset.model_id}")
```

{% hint style="info" %}
DatasetCompact objects are typically returned by other entities that reference datasets. Use .fetch() to get the complete Dataset instance when you need full functionality like row counts or model information.
{% endhint %}

## id *: UUID*

## name *: str*

## fetch()

Fetch the complete Dataset instance.

Retrieves the full Dataset object with all metadata, row counts, and model associations from the Fiddler platform using this compact dataset's ID.

### Returns

Complete dataset instance with all details and capabilities.

**Return type:** [`Dataset`](/api/fiddler-python-client-sdk/entities/dataset.md)

### Example

```python
# From dataset reference
compact = baseline.dataset

# Get full dataset details
full_dataset = compact.fetch()

# Now can access full functionality
print(f"Dataset has {full_dataset.row_count} rows")
print(f"Belongs to model: {full_dataset.model_id}")
```


---

# 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.fiddler.ai/api/fiddler-python-client-sdk/entities/dataset-compact.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.
