Python module for block randomization using pandas
copied from cf-staging / stochatreatstochatreat is a Python module to employ block randomization using pandas. Mainly thought with RCTs in mind, it also works for any other scenario in where you would like to randomly allocate treatment within blocks or strata.