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

implement mean and stddev for Decimal128 #3157

Open
universalmind303 opened this issue Oct 31, 2024 · 0 comments · May be fixed by #3159
Open

implement mean and stddev for Decimal128 #3157

universalmind303 opened this issue Oct 31, 2024 · 0 comments · May be fixed by #3159
Labels
enhancement New feature or request needs triage

Comments

@universalmind303
Copy link
Collaborator

Is your feature request related to a problem?

i want to run mean and stddev on decimal dtypes

Describe the solution you'd like

import daft
from daft import col, lit

d_col = col("floats").cast(daft.DataType.decimal128(5, 2))
df = (
    daft.from_pydict({"floats": [328.00, 300.00]})
    .agg(d_col.stddev())
    .collect()
)
df

Describe alternatives you've considered

casting to floats, but this may lose some precision.

Additional Context

No response

Would you like to implement a fix?

No

@universalmind303 universalmind303 added enhancement New feature or request needs triage labels Oct 31, 2024
@samster25 samster25 linked a pull request Nov 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant