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

# set_subgroup_id

<!-- source: en/_includes/work_src/reusage-python/set_subgroup_identifiers__desc.md -->
Set subgroup identifiers for all input objects.
<!-- endsource: en/_includes/work_src/reusage-python/set_subgroup_identifiers__desc.md -->


## Method call format {#call-format}

```python
set_subgroup_id(subgroup_id)
```

## Parameters {#parameters}

### subgroup_id

#### Description

Subgroup identifiers for all input objects. Supported identifier types are:
- int
- string types (string or unicode for Python 2 and bytes or string for Python 3).

**Possible types**

- list
- numpy.ndarray
- pandas.DataFrame
- pandas.Series
- [polars.Series](https://docs.pola.rs/api/python/stable/reference/series/index.html)

**Default value**

Required parameter
