---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_pool_save.md
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# save

<!-- source: en/_includes/work_src/reusage-python/python__pool__save__desc__div.md -->
Save the quantized pool to a file.
<!-- endsource: en/_includes/work_src/reusage-python/python__pool__save__desc__div.md -->


## Method call format {#call-format}

```python
save(fname)
```

## Parameters {#parameters}
### fname

#### Description

The name of the output file to save the pool to.

**Possible types**

string

**Default value**

Required parameter

## Example {#example}

[Quantize](https://catboost.ai/docs/en/concepts/python-reference_pool_quantized.md) the given dataset and save it to a file:

```python
import numpy as np
from catboost import Pool, CatBoostRegressor


train_data = np.random.randint(1, 100, size=(10000, 10))
train_labels = np.random.randint(2, size=(10000))
quantized_dataset_path = 'quantized_dataset.bin'

# save quantized dataset
train_dataset = Pool(train_data, train_labels)
train_dataset.quantize()
train_dataset.save(quantized_dataset_path)

```
