Skip to content

ENH:Implement .plot() for OLS Regression #6727

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

Closed
ccsv opened this issue Mar 28, 2014 · 3 comments
Closed

ENH:Implement .plot() for OLS Regression #6727

ccsv opened this issue Mar 28, 2014 · 3 comments

Comments

@ccsv
Copy link

ccsv commented Mar 28, 2014

I think the .plot() should also apply to OLS regression from pandas.stats.api import ols

Let say I have some points and I do

regression = ols(y=df['Y_VALUES'], x=df[['X_VALUES']])
So if I type
print (regression)
it gives me a summary of the data.

What I am suggesting is that if I type something like:

regression.plot()
plt.show()

It should give me a scatter plot with the best fit line.

@jorisvandenbossche
Copy link
Member

@ccsv I think you should open an issue for statsmodels (https://github.com/statsmodels/statsmodels/issues), as the OLS regression is maintained there (and will be deprecated in pandas at some time: #6077)

@TomAugspurger
Copy link
Contributor

And statsmodels also has a bunch of these already implemented, so you probably won't need to open an issue. The one you're asking for is here

@ccsv
Copy link
Author

ccsv commented Mar 29, 2014

@TomAugspurger @jorisvandenbossche

Cool guys I will close it then

@ccsv ccsv closed this as completed Mar 29, 2014
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

3 participants