Skip to content

DOC: Updating str_slice docstring #22569

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 12 commits into from
Oct 4, 2018

Conversation

JesperDramsch
Copy link
Contributor

Added Examples to docstring.
Added documentation to each part of docstring

@codecov
Copy link

codecov bot commented Sep 1, 2018

Codecov Report

Merging #22569 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #22569      +/-   ##
==========================================
- Coverage   92.19%   92.18%   -0.01%     
==========================================
  Files         169      169              
  Lines       50833    50823      -10     
==========================================
- Hits        46863    46853      -10     
  Misses       3970     3970
Flag Coverage Δ
#multiple 90.6% <ø> (ø) ⬆️
#single 42.36% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/strings.py 98.63% <ø> (ø) ⬆️
pandas/core/groupby/grouper.py 97.42% <0%> (-0.74%) ⬇️
pandas/core/internals/blocks.py 93.48% <0%> (-0.37%) ⬇️
pandas/core/dtypes/dtypes.py 95.85% <0%> (-0.26%) ⬇️
pandas/core/arrays/categorical.py 95.62% <0%> (-0.13%) ⬇️
pandas/io/pytables.py 92.44% <0%> (-0.05%) ⬇️
pandas/core/generic.py 96.65% <0%> (-0.02%) ⬇️
pandas/core/indexes/datetimelike.py 98.11% <0%> (ø) ⬆️
pandas/core/frame.py 97.2% <0%> (ø) ⬆️
pandas/core/indexes/multi.py 95.45% <0%> (ø) ⬆️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6247da0...d49a2e7. Read the comment docs.

@gfyoung gfyoung added Docs Strings String extension data type and string data labels Sep 1, 2018
Copy link
Member

@gfyoung gfyoung left a comment

Choose a reason for hiding this comment

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

Nice changes!

cc @jreback @datapythonista

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

Nice changes, added some comments about formatting and ideas to make the docstring even better.

@jorisvandenbossche
Copy link
Member

@JesperDramsch do you have time to update this PR based on the comments?

@JesperDramsch
Copy link
Contributor Author

@JesperDramsch do you have time to update this PR based on the comments?

Totally missed this one. I'll get to it asap

@pep8speaks
Copy link

pep8speaks commented Sep 28, 2018

Hello @JesperDramsch! Thanks for updating the PR.

Comment last updated on October 03, 2018 at 21:27 Hours UTC

@JesperDramsch
Copy link
Contributor Author

Here we go. Ran validation and updated everything according to the comments and linter. Thank you for the comments @datapythonista and thanks for the patience @jorisvandenbossche.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for another great docstring @JesperDramsch

The build is broken now, but will merge once it's fixed and the checks are green.

@datapythonista
Copy link
Member

@JesperDramsch can you rebase, so the CI runs again, and we can merge it?

@JesperDramsch
Copy link
Contributor Author

@JesperDramsch can you rebase, so the CI runs again, and we can merge it?

I'm not really sure what that means. How do I rebase?
Do you have a link?

@datapythonista
Copy link
Member

Sorry, we use rebase as short for updating your PR with the latest master.

Just run in your branch: git fetch upstream && git merge upstream/master && git push.

This is usually required when the branch of the PR has conflicts with master. In this case github would manage the merge itself, as there are no conflicts. But as the checks of the CI failed (for reasons unrelated to your PR), we just want them to run again. And as there are many systems, and I don't thing I even have permissions to all them, the easiest is that you update your branch, and then all them are automatically rerun.

With some luck we'll make things easier soon. :)

@JesperDramsch
Copy link
Contributor Author

Alright. I can get to that tomorrow easily.

@datapythonista
Copy link
Member

@JesperDramsch seems like there is a formatting issue pandas/core/strings.py:1497:1: W293 blank line contains whitespace, that's why travis is failing.

Can you fix it please. Happy to merge it afterwards.

@JesperDramsch
Copy link
Contributor Author

Aw Yiss.

@datapythonista datapythonista merged commit d430195 into pandas-dev:master Oct 4, 2018
@datapythonista
Copy link
Member

Thanks for another great docstring @JesperDramsch

@JesperDramsch JesperDramsch deleted the docstring-str_slice branch October 4, 2018 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants