Skip to content

BUG: HDFStore select for large integer #54186

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

Merged
merged 10 commits into from
Jul 19, 2023

Conversation

SanjithChockan
Copy link
Contributor

@SanjithChockan SanjithChockan commented Jul 19, 2023

Used decimal conversion instead of float to prevent precision loss

@@ -478,10 +478,10 @@ Conversion
- 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`)
- Bug in :func:`array` when given a ``datetime64`` or ``timedelta64`` dtype with unit of "s", "us", or "ms" returning :class:`PandasArray` instead of :class:`DatetimeArray` or :class:`TimedeltaArray` (:issue:`52859`)
- Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units for non-nanosecond ``pyarrow.timestamp`` and ``pyarrow.duration`` types (:issue:`51800`)
- Bug in :meth:`BinOp.convert_value` loses precision when converting int to float if integer in DataFrame stored in HDFS file format is large (:issue:`54186`)
Copy link
Member

Choose a reason for hiding this comment

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

Could you rewrite this in terms of a public pandas API (i.e. BInOp is not public)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rewrote it referencing HDFStore select method.

@mroeschke mroeschke added the IO HDF5 read_hdf, HDFStore label Jul 19, 2023
@mroeschke mroeschke merged commit c1f673b into pandas-dev:main Jul 19, 2023
@mroeschke
Copy link
Member

Thanks @SanjithChockan

@SanjithChockan SanjithChockan deleted the HDFStore-bug branch July 20, 2023 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: HDFStore select where condition doesn't work for large integer
2 participants