-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DOC: minor enhancement of DataFrame.insert docstring #16341
DOC: minor enhancement of DataFrame.insert docstring #16341
Conversation
The changes look good to me (thanks!), but it seems you have a conflict with master. Can you rebase? |
8075978
to
3090f1f
Compare
Done! It what quite painful for just a few changed lines, but I think it's ok now. I've pulled the latest master. |
Codecov Report
@@ Coverage Diff @@
## master #16341 +/- ##
=========================================
Coverage ? 90.37%
=========================================
Files ? 161
Lines ? 50967
Branches ? 0
=========================================
Hits ? 46063
Misses ? 4904
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16341 +/- ##
=========================================
Coverage ? 90.37%
=========================================
Files ? 161
Lines ? 50967
Branches ? 0
=========================================
Hits ? 46063
Misses ? 4904
Partials ? 0
Continue to review full report at Codecov.
|
@pierre-haessig Thanks! |
git diff upstream/master --name-only -- '*.py' | flake8 --diff
(but not clear to me if I did properly, because the first of the pipe only reports the filename of the changed file, no actual diff.)My first objective was to clarify the role of
column
vsvalue
keyword.For the reference, this is how this function is documented on http://stackoverflow.com/a/18674915/2822346. Function call is presented as
df.insert(idx, col_name, value)
. I find thecol_name
slightly more explicit than justcolumn
, which is ambiguous (i.e. "does column holds the Series?"). But of course this name cannot change without breaking the API. So this small PR is just an attempt to clarify things.Since I was touching the docstring, I've also make it a bit more tidy (e.g. removed a too long line).