Calmcode - patsy: categories

Categories

1 2 3 4 5 6 7 8 9

Here's the formula that the video ends with;

import patsy as ps
y, X = ps.dmatrices("n_born ~ wday + yday - 1 + C(month)", df_clean)
print(X[:5])