I need to compute combinatorials (nCr) in Python but cannot find the function to do that in math, numpy or stat libraries. Something
math
numpy
stat
It's pretty easy with sympy.
import sympy comb = sympy.binomial(n, r)