---
title: "Dataset.create_collection"
description: "Create a collection in the dataset."
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.create_collection

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

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

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

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

Create a collection in the dataset.

## Parameters

**name**

type: string

The name of the collection

## Returns

The created collection object.

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

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

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