Column.
between
A boolean expression that is evaluated to true if the value of this expression is between the given columns.
New in version 1.3.0.
Examples
>>> df.select(df.name, df.age.between(2, 4)).show() +-----+---------------------------+ | name|((age >= 2) AND (age <= 4))| +-----+---------------------------+ |Alice| true| | Bob| false| +-----+---------------------------+