1.5 KiB
Vendored
1.5 KiB
Vendored
between
Return a Boolean DataColumn indicating whether each value lies between two bounds. Return a Boolean DataColumn indicating whether each value lies between two bounds. Return a Boolean DataColumn indicating whether each value lies between two bounds.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)