Closed s3alfisc closed 9 months ago
Thanks so much for taking the time to report this @s3alfisc ! I'll try to get it fixed in the next patch release!
Hi @s3alfisc! This should now all work properly in 0.6.5 . Let me know if you run into any further troubles!
Awesome! I'll let you know in case I spot anything else :)
Hi @matthewwardrop,
I think I encountered a bug -
model_matrix
struggles when there is anp.nan
value in a covariates whenpoly()
is used in the formula.Here are two (hopefully) reproducible examples:
In example one, there is a
np.nan
in a covariate not wrapped inpoly()
, which causes a numpy attribute error. In the second example, there is anp.nan
in the covariate wrapped inpoly()
, which causes the polynomial expansions to be populated with NA values (instead of dropping the missing values).In case there are no NA values,
poly()
fully works as expected.Beyond this, I wanted to say that
formulaic
is a fantastic package, and I thoroughly enjoy building on top of it! =)