# sum()

`sum(col)` returns the sum of the values in the provided column.

Non-numeric values are ignored.

## Returns

A table with one row and one column, called `@q.sum`.

## Example

Compute the number of bytes received in the **checkout\_api** service, aggregated by **host**.

```python
kubernetes.container_name: "checkout_api"
| stats sum(log.%kv.bytes) by host
```
