formulaic
formulaic copied to clipboard
Draft: Add support for the patsy `Q` transform.
Motivated by #115 , this is a quick draft demonstrating a Q
transform that replicates the behavior of the patsy Q
function.
Notes:
- This syntax is not as nice as
....
, but may be valuable when users are migrating over to formulaic from patsy. - Perhaps this should be gated by a patsy compatibility flag.
- Perhaps
_data
and_context
should be passed in separately, to avoid name collisions / weird data types. - Perhaps it isn't worth adding at all? And just have people migrate over to
...
syntax, or furnish formulaic with their ownQ
implementation (only merge the context bits).