Closed boschmic closed 10 months ago
The root cause is the comparison (x < JS_MIN_SAFE_INTEGER)
in itables/datatables_format.py:87
Polars doesn't allow comparing unsigned integers to negative numbers, for instance following code throws OverflowErrror:
import numpy as np
import polars as pl
pl.Series(np.arange(4).astype('uint32')) < -42
Thank you @boschmic for this report, and the detailed and helpful information. Let me look into this, that should be easy to fix !
Showing the following data-frame inside a Jupyter notebook throws OverflowError (notice the u32 dtype):
Code:
Error:
itables version is
1.5.3
. Polars version0.18.15
.Jupyter package versions: