BUG: ValueError: Cannot convert non-finite values (NA or inf) to integer only when DF exceed certain size
- [ ] closes #35227
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Can you add a test for the behavior you are trying to fix? As reviewers that's typically the first thing we look at @ben-arnao can you update here in response to comments? @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. 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. Closing for now. @ben-arnao ping us whenever you'd like to continue and we'll reopen!