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

Initial value for aggregations #8

Open
asavinov opened this issue Jul 25, 2021 · 0 comments
Open

Initial value for aggregations #8

asavinov opened this issue Jul 25, 2021 · 0 comments
Labels
operation Tasks related to how data operations work

Comments

@asavinov
Copy link
Owner

Problem: currently it is not possible to set initial value for aggregations (a default value is always used). For example, if we use sum for aggregation then default initial value 0.0 is meaningful. But if we use product, then we would want to specify 1.0 as an initial value.

Implement a possibility to specify custom initial value to be used in aggregation operations like rolling aggregation or normal aggregation.

Notes:

  • Consider also its relation to fillna. We need some value if the group is empty.
  • It should work for both API and Column-SQL
  • Create or modify unit test for initial values
  • Modify notebooks and documentation to demonstrate the use of initial values
@asavinov asavinov added the operation Tasks related to how data operations work label Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operation Tasks related to how data operations work
Projects
None yet
Development

No branches or pull requests

1 participant