-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pass the errors and kwargs arguments through to astype in the columns… #25888
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
Conversation
… dict logic branch.
Codecov Report
@@ Coverage Diff @@
## master #25888 +/- ##
==========================================
+ Coverage 91.47% 91.48% +<.01%
==========================================
Files 175 175
Lines 52885 52885
==========================================
+ Hits 48379 48380 +1
+ Misses 4506 4505 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25888 +/- ##
==========================================
+ Coverage 91.47% 91.81% +0.33%
==========================================
Files 175 175
Lines 52885 52580 -305
==========================================
- Hits 48379 48274 -105
+ Misses 4506 4306 -200
Continue to review full report at Codecov.
|
what exactly are you trying to do? does this close an issue? always always need a test |
If you look at lines 5705 [0], 5732 [1] the calls to How I ran into this was when I am calling astype on one column I can set errors='coerce' but when I am calling I was hoping to get feedback on this approach. [0] https://github.com/pandas-dev/pandas/pull/25888/files#diff-03b380f521c43cf003207b0711bac67fR5705 |
you would be better off to write a test that shows the behavior |
Updated with the test @jreback . Side note is that I was tempted to rename |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a whatsnew note for v0.25?
…ck for the absense of the exception we'd normally throw. Assert the resulting dataframe against a reference dataframe. Move the test case to test_dtypes.
The whatsnew note is added in 0430b38 |
Anything more I need to pursue on this? |
…uldn't raise. Add a comment about addressing GH25905. Improve the dict formatting. Simplify the dict key names to make the test easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits
Hello @johnklehm! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-03-31 00:32:36 UTC |
PEP8 E241 is normally off by default along with E226 E242....is the pep8speaks bot implying E241 is adhered to for pandas? |
@johnklehm yep also need to fix up flake8 errors |
…learer what is converted by astype. Swap the position of result and expected to match the style of the rest of the file.
I see 2 flake8 errors but don't think they're related to my changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm @jreback
thanks @johnklehm |
… dict logic branch.