Python "pow(n, k, m)" computes $n^k \pmod m$ efficiently, most likely by computing modulus after each squaring step.
I only found Python $binomial(n, k)$ function.
But computing that function for high values of $n$ and $k$ with only finally computing $\pmod m$ does not work.
Is there a method to compute ${n\choose{k}} \pmod m$ efficiently?
Or at least ${n\choose{k}} \pmod p$ with prime $p$?
I searched here and on Approach0 and found nothing helpful.