elixir-explorer / explorer

Series (one-dimensional) and dataframes (two-dimensional) for fast and elegant data exploration in Elixir
https://hexdocs.pm/explorer
MIT License
1.12k stars 123 forks source link

Add support for some operations with decimals #988

Closed philss closed 1 month ago

philss commented 2 months ago

Adding support for decimals in some of functions that work with integers and floats. This is adding support for creating decimal series using the Explorer.Series.from_list/2 function as well.

The decimals support is still in the experimental phase in Polars, so we won't be able to support all the operations now. Some of the operations are returning f64 series or float results, and some of the functions are raising exceptions from Polars because they are not implemented at the backend.