-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
BUG: DataFrame.style displays wrong value for long integers #52272 FIX #52686
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
doc/source/whatsnew/v2.1.0.rst
Outdated
@@ -305,6 +305,8 @@ Conversion | |||
^^^^^^^^^^ | |||
- Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units for non-nanosecond ``pyarrow.timestamp`` and ``pyarrow.duration`` types (:issue:`51800`) | |||
- Bug in :meth:`DataFrame.info` raising ``ValueError`` when ``use_numba`` is set (:issue:`51922`) | |||
- Bug in :func:`_default_formatter`, If the DataFrame contains integers with more digits than can be represented by floating point double precision |
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.
- Bug in :func:`_default_formatter`, If the DataFrame contains integers with more digits than can be represented by floating point double precision | |
- Bug in :func:`DataFrame.style.to_latex` and :func:`DataFrame.style.to_html` if the DataFrame contains integers with more digits than can be represented by floating point double precision (:issue:`52272`) |
doc/source/whatsnew/v2.1.0.rst
Outdated
@@ -305,6 +305,8 @@ Conversion | |||
^^^^^^^^^^ | |||
- Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units for non-nanosecond ``pyarrow.timestamp`` and ``pyarrow.duration`` types (:issue:`51800`) | |||
- Bug in :meth:`DataFrame.info` raising ``ValueError`` when ``use_numba`` is set (:issue:`51922`) | |||
- Bug in :func:`_default_formatter`, If the DataFrame contains integers with more digits than can be represented by floating point double precision | |||
_default_formatter returns incorrect data value truncated due to loss of precision. Fix adds to html or latex as string in this case (:issue:`52272`) |
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.
_default_formatter returns incorrect data value truncated due to loss of precision. Fix adds to html or latex as string in this case (:issue:`52272`) |
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.
Please also address the failures in the code check job
…v#52272 FIX documentation and tests
Thanks @lusolorz |
doc/source/whatsnew/v2.1.0.rst
fileFix Description: Returns string if value exceeds float point double to avoid loss of precision.