Skip to content
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

Code style comment #1

Open
jseabold opened this issue Apr 8, 2014 · 0 comments
Open

Code style comment #1

jseabold opened this issue Apr 8, 2014 · 0 comments

Comments

@jseabold
Copy link

jseabold commented Apr 8, 2014

You can break up the long formulas over several lines. I find this to be a nice feature of Python to keep formulas readable. E.g.

m5 = smf.ols(formula='Metascore ~ C(rating) + log(Adj_Revenue+1) + '
                     'log(Adj_Budget+1) + imdbRating + log(imdbVotes+1) + '
                     'Runtime + C(Genre_y) + Year + C(Week) + C(English) + '
                     'C(USA) + C(Rated)', data=df).fit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant