Skip to content

xxxFor {} functions in statistics unreasonably strict #1429

@Jolanrensen

Description

@Jolanrensen

df.maxFor { age and name } is not allowed, even though the result would be a DataRow containing the maximum value for each column independently.

df.maxFor { (age and name).asComparable() } works fine, so it's just the type limitation.

It's probably fine to change the type to C : Comparable<*>? for these particular functions, as C is never used in a reified way.

This also applies to medianFor, and percentileFor

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions