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

Constant column for OLS #185

Open
w4rner opened this issue Feb 5, 2018 · 0 comments
Open

Constant column for OLS #185

w4rner opened this issue Feb 5, 2018 · 0 comments

Comments

@w4rner
Copy link

w4rner commented Feb 5, 2018

People might be interested to know:

statsmodels.api has a built in method: .add_constant(DataFrame)

It adds a column of 1.0 called 'const' on the left of the DataFrame. This allows you to avoid having to manually create this column using broadcasting.

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