-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support linearmodels
#19
Comments
I'm having a go at this, but there is a fundamental discrepancy between My first attempt at a
When Any advice on how to handle this would be appreciated. |
Thanks so much for taking a look at this, I really appreciate it! Frankly, I'm not super familiar with either Does the fitted model hold attributes with the "original" names of the variables used in the index? Can we use this to convert from polars to pandas on the fly on ingestion? |
The fitted model stores the dependent and exog dataframes, but uses the column names generated by patsy. Both of these contain the original We could reset the index, converting them to columns, before converting a pandas dataframe to a polar dataframe. Where required, we could restore the index with Can this solution be done solely in the Model class, or do other functions need to change for this as well? |
In principle, I think it should be OK to do only in the model class, as long as all the methods assume Polars as both Input and Output. |
I've added initial support for Unlike
This stil needs work before I can push a PR.
|
Wow, this is super cool! No, unfortunately, we cannot work solely with Perhaps we can force users to supply a data frame to the |
Closed by #144 😊 |
https://bashtage.github.io/linearmodels/
The text was updated successfully, but these errors were encountered: