Skip to content

BUG: ValueError: Cannot convert non-finite values (NA or inf) to integer only when DF exceed certain size #35385

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

Closed
wants to merge 1 commit into from

Conversation

ben-arnao
Copy link

@ben-arnao ben-arnao commented Jul 22, 2020

@WillAyd
Copy link
Member

WillAyd commented Jul 22, 2020

Can you add a test for the behavior you are trying to fix? As reviewers that's typically the first thing we look at

@jreback jreback changed the title fix #35227 BUG: ValueError: Cannot convert non-finite values (NA or inf) to integer only when DF exceed certain size Jul 23, 2020
@simonjayhawkins simonjayhawkins added Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Jul 24, 2020
@@ -1313,7 +1313,7 @@ def check_below_min_count(
non_nulls = np.prod(shape)
else:
non_nulls = mask.size - mask.sum()
if non_nulls < min_count:
if non_nulls > 0 and non_nulls < min_count:
Copy link
Member

Choose a reason for hiding this comment

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

@TomAugspurger
Copy link
Contributor

@ben-arnao can you update here in response to comments?

@ben-arnao
Copy link
Author

ben-arnao commented Sep 5, 2020

@TomAugspurger I wasn't sure if this was something people wanted to continue with. I can make the changes @simonjayhawkins suggested if that's what's needed.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2020

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Oct 8, 2020
@arw2019
Copy link
Member

arw2019 commented Nov 4, 2020

Closing for now. @ben-arnao ping us whenever you'd like to continue and we'll reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: ValueError: Cannot convert non-finite values (NA or inf) to integer only when DF exceed certain size
5 participants