---
updatedAt: 2025-12-05T18:41:41.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# set_label

Aliases: `setlabel` (deprecated).

```
set_label name: col string
```

Declare the 'label' of the output to be the designated column. The column must contain strings.

# Categories

* [Metadata](verb#metadata-verbs)

# Accelerable

set\_label is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs can be accelerated, making
queries on the dataset respond faster.

# Examples

<OpalCodeBlock code={
`set_label device_name
`}/>

Sets 'label' of the output dataset as the 'device\_name' column.