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

Sum statistics and aggregator improvements #1103

Merged
merged 9 commits into from
Mar 20, 2025
Merged

Sum statistics and aggregator improvements #1103

merged 9 commits into from
Mar 20, 2025

Conversation

Jolanrensen
Copy link
Collaborator

@Jolanrensen Jolanrensen commented Mar 18, 2025

Helps #961

  • Simplified sum implementation, based on the table at ☂ Statistics streamlining #961
  • Fixed public sum overloads so they always return the correct type based on the table
  • tiny fixes for aggregateOfRow
  • Selecting "no" columns in mean and sum will now select primitive- or mixed numbers only. This automatically excludes columns with unsupported numbers and in the slight case unsupported numbers end up in a mixed column, we provide a helpful exception.

# Conflicts:
#	core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/sum.kt
@Jolanrensen Jolanrensen mentioned this pull request Mar 18, 2025
9 tasks
@Jolanrensen Jolanrensen force-pushed the sum branch 3 times, most recently from f2e7a32 to 5ebabf9 Compare March 18, 2025 13:27
@Jolanrensen Jolanrensen marked this pull request as ready for review March 18, 2025 13:42
@Jolanrensen Jolanrensen added this to the 0.16 milestone Mar 18, 2025
…can now return `null`, so we can give helpful errors from the aggregator
@Jolanrensen Jolanrensen requested review from AndreiKingsley and removed request for AndreiKingsley March 19, 2025 14:04
Copy link
Collaborator

@AndreiKingsley AndreiKingsley left a comment

Choose a reason for hiding this comment

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

Nice!

@Jolanrensen Jolanrensen merged commit 4554833 into master Mar 20, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants