Skip to content
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

Add support for some operations with decimals #988

Merged
merged 14 commits into from
Oct 16, 2024
Merged
Prev Previous commit
Next Next commit
Use a standard name from the :decimal dtypes
  • Loading branch information
philss committed Oct 9, 2024
commit 7ac53e018583a7c8bd5e4d37b012df6afa0cc0ba
14 changes: 9 additions & 5 deletions lib/explorer/series.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,7 @@ defmodule Explorer.Series do

* floats: #{Shared.inspect_dtypes(@float_dtypes, backsticks: true)}
* integers: #{Shared.inspect_dtypes(@integer_types, backsticks: true)}
Copy link
Member

Choose a reason for hiding this comment

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

Btw, there is a typo here, it should be backticks but we fix it later. :D

* decimals. The result will be a float.
* `:decimal`. The result will be a float.
philss marked this conversation as resolved.
Show resolved Hide resolved

## Examples

Expand Down Expand Up @@ -2675,7 +2675,7 @@ defmodule Explorer.Series do

* floats: #{Shared.inspect_dtypes(@float_dtypes, backsticks: true)}
* integers: #{Shared.inspect_dtypes(@integer_types, backsticks: true)}
* decimals. The result will be a float.
* `:decimal`. The result will be a float.

## Examples

Expand Down Expand Up @@ -2745,7 +2745,7 @@ defmodule Explorer.Series do

* floats: #{Shared.inspect_dtypes(@float_dtypes, backsticks: true)}
* integers: #{Shared.inspect_dtypes(@integer_types, backsticks: true)}
* decimals. The result will be a float.
* `:decimal`. The result will be a float.

## Examples

Expand Down Expand Up @@ -2917,7 +2917,7 @@ defmodule Explorer.Series do

* floats: #{Shared.inspect_dtypes(@float_dtypes, backsticks: true)}
* integers: #{Shared.inspect_dtypes(@integer_types, backsticks: true)}
* decimals. The result will be a float.
* `:decimal`. The result will be a float.

## Examples

Expand Down Expand Up @@ -2949,7 +2949,7 @@ defmodule Explorer.Series do

* floats: #{Shared.inspect_dtypes(@float_dtypes, backsticks: true)}
* integers: #{Shared.inspect_dtypes(@integer_types, backsticks: true)}
* decimals. The result will be a float.
* `:decimal`. The result will be a float.

## Examples

Expand Down Expand Up @@ -4243,6 +4243,7 @@ defmodule Explorer.Series do
* `:time`
* `:datetime`
* `:duration`
* `:decimal`

## Examples

Expand Down Expand Up @@ -4282,6 +4283,7 @@ defmodule Explorer.Series do
* `:time`
* `:datetime`
* `:duration`
* `:decimal`

## Examples

Expand Down Expand Up @@ -4321,6 +4323,7 @@ defmodule Explorer.Series do
* `:time`
* `:datetime`
* `:duration`
* `:decimal`

## Examples

Expand Down Expand Up @@ -4360,6 +4363,7 @@ defmodule Explorer.Series do
* `:time`
* `:datetime`
* `:duration`
* `:decimal`

## Examples

Expand Down
Loading