Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Remove superfluous assignment in tutorial. issue #8285 #8314

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

Merged
merged 2 commits into from
Feb 8, 2017

Conversation

seanpwilliams
Copy link
Contributor

@seanpwilliams seanpwilliams commented Feb 8, 2017

Reference Issue

Fixes #8285

What does this implement/fix? Explain your changes.

I thought there was an odd bit of code in the tutorial, regarding the name chosen in an assignment. Per recommendation from lesteve, I just removed the assignment entirely.

Any other comments?

This is my first PR to the project; I hope I'm submitting according to the guidelines. Let me know if I'm not, feel free to point me towards a way to remedy it, and I'll do so.

per recommendation
@jnothman
Copy link
Member

jnothman commented Feb 8, 2017

When doctest is run on these, it will expect output if the return value is not None. The previous code ensured the return value is None.

@lesteve
Copy link
Member

lesteve commented Feb 8, 2017

The previous code ensured the return value is None.

Ah fair point, I did not think of that. Weird that the tests are passing then ... maybe something slightly wrong with the way doctests are run ?

This is my first PR to the project

Congrats, it looks good overall. Next time please create a feature branch, i.e. do not create a PR from your master branch.

@jnothman
Copy link
Member

jnothman commented Feb 8, 2017 via email

@lesteve
Copy link
Member

lesteve commented Feb 8, 2017

Ah fair point, I did not think of that. Weird that the tests are passing then ... maybe something slightly wrong with the way doctests are run ?

There is a fixture in doc/tutorial/text_analytics/working_with_text_data_fixture.py that skips the doctest because it needs dataset to be downloaded.

@lesteve
Copy link
Member

lesteve commented Feb 8, 2017

I pushed a change that should fix the doctests.

@jnothman
Copy link
Member

jnothman commented Feb 8, 2017

LGTM

@jnothman jnothman merged commit bae38a2 into scikit-learn:master Feb 8, 2017
@jnothman
Copy link
Member

jnothman commented Feb 8, 2017

Thanks @seanpwilliams

sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
… (scikit-learn#8314)

* remove assignment

per recommendation

* Fix doctests
@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
… (scikit-learn#8314)

* remove assignment

per recommendation

* Fix doctests
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
… (scikit-learn#8314)

* remove assignment

per recommendation

* Fix doctests
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
… (scikit-learn#8314)

* remove assignment

per recommendation

* Fix doctests
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
… (scikit-learn#8314)

* remove assignment

per recommendation

* Fix doctests
lemonlaug pushed a commit to lemonlaug/scikit-learn that referenced this pull request Jan 6, 2021
… (scikit-learn#8314)

* remove assignment

per recommendation

* Fix doctests
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

Successfully merging this pull request may close these issues.

more descriptive assignment in Working With Text Data documentation
3 participants