Skip to content
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

BUG: downcast = 'unsigend' on 0 would would not downcast to unsigned. #14472

Closed
wants to merge 10 commits into from

Conversation

verhalenn
Copy link

@verhalenn verhalenn commented Oct 22, 2016

Continuation of #14412

Once again I had some very bizarre issues with git. Hope this does it this time.

@jorisvandenbossche
Copy link
Member

@verhalenn For future reference, it is normally never needed to open a new PR to fix git issues. You can just clean it up locally and force push.

BTW, you have some failing tests.

@jorisvandenbossche jorisvandenbossche added Bug Dtype Conversions Unexpected or buggy dtype conversions labels Oct 22, 2016
@jorisvandenbossche jorisvandenbossche added this to the 0.19.1 milestone Oct 22, 2016
@verhalenn
Copy link
Author

No when I forced pushed it it closed the pull request for some reason. Usually that would happen if I were to delete the branch and then force push but that wasn't the case. I'll look into the error.

@codecov-io
Copy link

codecov-io commented Oct 24, 2016

Current coverage is 85.25% (diff: 100%)

No coverage report found for master at 2e77536.

Powered by Codecov. Last update 2e77536...8db827a

@@ -401,6 +401,32 @@ def test_downcast(self):
res = pd.to_numeric(data, downcast=downcast)
tm.assert_numpy_array_equal(res, expected)

# check that the smallest and largest values in each integer type pass to each type.
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make this into a separate test function

add the issue number as a comment

ping on green

- Bug in ``pd.pivot_table`` may raise ``TypeError`` or ``ValueError`` when ``index`` or ``columns``
is not scalar and ``values`` is not specified (:issue:`14380`)
Copy link
Contributor

Choose a reason for hiding this comment

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

you eliminated this line, pls restore it (its another issue)

@jreback jreback closed this in 6ff53c2 Oct 25, 2016
@jreback
Copy link
Contributor

jreback commented Oct 25, 2016

thanks!

@gfyoung
Copy link
Member

gfyoung commented Oct 25, 2016

@jreback : I think this commit is breaking master right now.

@jreback
Copy link
Contributor

jreback commented Oct 25, 2016

reverted: d1d75d7

@verhalenn if you can re-submit this PR would be great.

@verhalenn
Copy link
Author

First thing tomorrow morning. I was kind of surprised you closed it when you did. The lint should be an easy fix but the downcast test will take a little extra time.

@jorisvandenbossche jorisvandenbossche modified the milestones: No action, 0.19.1 Nov 2, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pd.to_numeric(..., downcast='unsigned') should accept 0
5 participants