---
title: "Dataset.collection"
description: "Access a specific collection by its name."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Dataset.collection

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```python
def Dataset.collection(name: str) -> Collection
```

Access a specific collection by its name.

## Parameters

**name**

type: string

The name of the collection

## Returns

A collection object.

## Errors

**NotFoundError**

type: No such collection: Non-existent-Collection

The specified collection does not exist in the dataset.

<h2 id="request-example">Usage example</h2>

```python
collection = dataset.collection("My-collection")
```

Source: https://tilebox.com/docs/api-reference/python/tilebox.datasets/Dataset.collection/index.mdx
