EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Calculates the remainder of dividing the first argument by the second argument. Same results as the C++ modulo operator. Accessible using the %
syntax.
The remainder of dividing `a` by `n`
Variable | Type | Description |
---|---|---|
a | TIME64NS / INT64 | The dividend. |
n | INT64 / TIME64NS | The divisor. |
# Implicit call.df.duration_mod_5s = df.duration % px.seconds(5)# Explicit call.df.duration_mod_5s = px.modulo(df.duration, px.seconds(5))