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
What goes in statsmodels.formula.api? #804
Comments
Alternatively, we bite the bullet and put all the formula stuff in the main api with the convention that lowercase is formula uppercase is y/X. |
I don't think this has been publicly exposed, but this is actually what it's documented to be here: |
We never really discussed formula.api. (repeating you since I didn't see your comment initially) The example_formulas.ipynb needs to be changed.
|
Yeah I'm cleaning up that notebook now. Somewhat Devil's advocate. I still kind of like the
? |
Actually, I think that's my vote now. So we leave the status quo, but also import formula.api as formula into statsmodels.api? |
It would be more explicit (and I like explicitness), but I guess it won't survive in practise because it's too wordy for basic, very frequently used functions. Even if it's easy to get with tab completion, it would also look wordy in documentation, examples, blog posts, ... Trying to explain the difference between lower and upper case names might not be trivial either. |
Yeah I'm trying to imagine being a new user and I don't like ols and OLS living side by side. I think sm.formula works since you can still import directly from formula.api (or just import this as |
(Internet explorer doesn't autoupdate, so I'm always running behind your comments)
Fine with me, but change the notebook to |
Sounds good. You should look into a modern browser ;) |
I have IIE, FF and Chrome open, but FF which is my _over_used browser is embarrassed "Well, this is embarrassing." |
ENH: Import formula.api in statsmodels.api namespace. Closes statsmodels#804.
Should we split the API into statsmodels the helpers and statsmodels the models?
This would mean that statsmodels/api.py is
and statsmodels/formula/api.py is
I ask because we have a notebook right now that has
As soon as I start to do
sm.data<TAB>
I realized the issue here. Mostly we've just been explicitly import from statsmodels.formula.api, but this might get tedious. Thoughts?The text was updated successfully, but these errors were encountered: