Relative Content

Tag Archive for pythonpython-polars

How to apply `numpy.finfo` to Polars types?

I sometimes apply numpy.finfo to a Pandas or a NumPy dtype – to determine the maximum support value (max) or the minimum meaningful increment (eps), say. Is there an equivalent for Polars dtypes? Or an easy way to convert a Polars dtype to a NumPy one (without casting the whole array)?