-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
CLN:Remove unused **kwargs from user facing methods #23249
Conversation
Hello @kprestel! Thanks for updating the PR.
Comment last updated on November 11, 2018 at 16:41 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #23249 +/- ##
=======================================
Coverage 92.23% 92.23%
=======================================
Files 161 161
Lines 51288 51288
=======================================
Hits 47304 47304
Misses 3984 3984
Continue to review full report at Codecov.
|
Quick glance at the CI failures seem related to the change. If you could take a look would be great, ping if you need help |
059cbfa
to
c36e02c
Compare
@WillAyd I think I fixed the tests (they all pass locally) but the change I had to make seems a bit counter to the essence of this issue. It seems that the failures were mostly related to passing the kwarg Its likely that I just don't know what I'm talking about and this is needed for something that I just don't know about, but I wanted to at least bring it up so someone with more knowledge of the code base can look a bit closer at it. Thanks again for the review and the help! |
Hmm OK. I personally wouldn't be opposed to making |
@WillAyd It wasn't a ton of functions. Maybe 3-4? |
I'm not against using an explicit named parameter instead of kwargs for the |
does this competely close #18748 ? |
can you merge master and update |
c36e02c
to
f3686ee
Compare
@jreback Addressed your request for changes and yes this completely closes #18748. There are some internal functions as well as test functions that still have this issue but as you said in the issue, those aren't really an issue. I have run the script from the issue and the results are posted in this PR. @WillAyd I don't actually think passing I can add a test if you want but I do believe that it is in the same of this issue I'm addressing so it belongs in this PR. I'm happy to change it (or add a whatsnew + tests) if you want but I don't think its necessarily warranted. |
f3686ee
to
0a785d5
Compare
@jreback I reverted that Thanks for the help. |
Thanks @kprestel ! |
* upstream/master: BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527) DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635) More helpful Stata string length error. (pandas-dev#23629) BUG: astype fill_value for SparseArray.astype (pandas-dev#23547) CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587) CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627) CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249) DOC: Enhancing pivot / reshape docs (pandas-dev#21038) TST: Fix xfailing DataFrame arithmetic tests by transposing (pandas-dev#23620)
…fixed * upstream/master: DOC: avoid SparseArray.take error (pandas-dev#23637) CLN: remove incorrect usages of com.AbstractMethodError (pandas-dev#23625) DOC: Adding validation of the section order in docstrings (pandas-dev#23607) BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527) DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635) More helpful Stata string length error. (pandas-dev#23629) BUG: astype fill_value for SparseArray.astype (pandas-dev#23547) CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587) CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627) CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249)
closes GH18748 for user facing methods.
An updated extra_kwargs.txt mostly shows internal functions and false positives.
There are a few cases like all of the
visit_*
functions that removing the**kwargs
breaks the API.git diff upstream/master -u -- "*.py" | flake8 --diff