between
Returns a DataColumn
of Boolean
values indicating whether each element in this column lies between the given lower and upper boundaries.
If includeBoundaries
is true
(default), values equal to the lower or upper boundary are also considered in range.
col.between(left, right, includeBoundaries)
Examples
df
Check ages are between 18 and 25 inclusive:
df.age.between(left = 18, right = 25)
Strictly between 18 and 25 (excluding boundaries):
df.age.between(left = 18, right = 25, includeBoundaries = false)
18 September 2025