# between

> For the complete documentation index, see [llms.txt](https://kotlin.github.io/dataframe/llms.txt).

Returns a [DataColumn](datacolumn.html) of `Boolean` values indicating whether each element in this column lies between the given lower and upper boundaries.

API reference: [between](https://kotlin.github.io/dataframe/api-docs/core/org.jetbrains.kotlinx.dataframe.api/between.html)

If `includeBoundaries` is `true` (default), values equal to the lower or upper boundary are also considered in range.

```KOTLIN
col.between(left, right, includeBoundaries)
```

## Examples

```KOTLIN
df
```

[Embedded content](./resources/notebook_test_between_1.html)

Check ages are between 18 and 25 inclusive:

```KOTLIN
df.age.between(left = 18, right = 25)
```

[Embedded content](./resources/notebook_test_between_2.html)

Strictly between 18 and 25 (excluding boundaries):

```KOTLIN
df.age.between(left = 18, right = 25, includeBoundaries = false)
```

[Embedded content](./resources/notebook_test_between_3.html)

