-
-
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
BUG: No error raised in to_stata() for -np.inf #45350 #45360
Conversation
* Add an absolute function when checking infinity, which includes both np.inf and -np.inf. Also changed the error message a bit. * Add similar tests but replacing np.inf with -np.inf and change the correct error message accordingly
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.
Will also need a note in whatsnew/v1.5.0.rst
under IO
* Change the fix to make it faster. * Group the two test for DataFrame containing np.inf or -np.inf into a separate test function. * Update doc/source/whatsnew/v1.5.0.rst
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.
One small comment otherwise LGTM
* Minor change in code style.
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
thanks @flcong |
to_stata()
if the column contains-np.inf
#45350