Skip to content

DOC: Fix doc test errors - #3425

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:doc-fixes-pre-0.8
Feb 5, 2017
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:doc-fixes-pre-0.8

Conversation

@bashtage

@bashtage bashtage commented Feb 4, 2017

Copy link
Copy Markdown
Member

Fix a number of doctest errors

[skip ci]

Fix a number of doctest errors

[skip ci]
@bashtage

bashtage commented Feb 4, 2017

Copy link
Copy Markdown
Member Author

@josef-pkt @TomAugspurger

These are explicit errors in doc tests (ignoring "NameError" since many example assume things have been done). Might be good to include this.

>>> pp_x = sm.ProbPlot(x)
>>> pp_y = sm.ProbPlot(y)
>>> qqplot_2samples(data1, data2, xlabel=None, ylabel=None, line=None, ax=None):
>>> qqplot_2samples(pp_x, pp_y)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be nicer with qqplot_2samples(x, y) or both, using the data interface will be more common usage

@josef-pkt

Copy link
Copy Markdown
Member

I'm merging this as is. fixing bugs

(the backslashes are slightly ugly because we wouldn't use them in regular code. If required, the ... for continuation line might look better. IDLE doesn't add the ...)

@josef-pkt
josef-pkt merged commit 4f9f91b into statsmodels:master Feb 5, 2017
@josef-pkt josef-pkt mentioned this pull request Feb 5, 2017
4 of 28 tasks
@bashtage
bashtage deleted the doc-fixes-pre-0.8 branch February 6, 2017 10:27
josef-pkt added a commit to josef-pkt/statsmodels that referenced this pull request Feb 6, 2017
DOC: Fix doc test errors
Conflicts:
	statsmodels/tsa/filters/bk_filter.py
	statsmodels/tsa/filters/cf_filter.py
	statsmodels/tsa/filters/hp_filter.py
	statsmodels/tsa/statespace/kalman_filter.py
@josef-pkt josef-pkt mentioned this pull request Feb 6, 2017
@josef-pkt josef-pkt added this to the 0.8 milestone Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants