-
Notifications
You must be signed in to change notification settings - Fork 69
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
Describe breaks on Number
column
#558
Comments
#352 probably same problem |
It looks like an umbrella ticket and should be split to a smaller task |
Number
column (and other statistics inconsistencies)Number
column (and other statistics inconsistencies)
It may be best to first just fix some of the most annoying bugs or obvious oversights, like those relating to Next a revamp may be best. We'll need to hide public functions that are not on I'd also recommend making and honoring a conversion table. Something like:
|
Number
column (and other statistics inconsistencies)Number
column
This issue will be continued in #961 |
Describe breaks on
Number
columns. This happens because theIterable<Number>.std()
function acceptsNumber
but doesn't convert them toDouble
(likemean()
does).There are a couple more missing actually:
cumSum
Byte
,Short
HasDataColumn
overloads but notIterable
/Sequence
mean
HasSequence<Double | Float>
but not for otherNumber
typesmedian
Float
,Byte
,Short
,Number
(it only works onComparable
)NoSequence
overloadsskipNA
(if applicable)min
andmax
Iterable<T>.min
andmax
are not used and can be removed. Stdlib functions for Comparable sequences and iterables are used instead.Number
(it only works onComparable
)Short
andByte
are converted toInt
for some reasonstd
Number
Short
andByte
are cast toInt
which works but is a bit iffyIterable overloads missing forNumber
,Short
,Byte
Sequence overloads missingNullable overloads missing for Iterable (and sequence)varianceAndMean
std(ddof: Int)
function without docs of what ddof even means, as well ascount
. Could have a better name. Also can produce nulls?? this screams for documentation.Short
,Byte
,Number
, and nullable overloadsMisses Sequence overloadssum
TODO
s where types are amissFloat
(!),Short
,Byte
,Number
in variousIterable
overloads.All are also missing
BigInteger
as we're supportingBigDecimal
too.There are plenty of public overloads on
Iterable
andSequence
. It's fine to have them internally, but I feel like we're clogging the public scope here.mean
, for instance, is already covered in the stdlib.We need to honor some conversion table (see below)
Describe now only shows min, median, and max for
<T : Comparable<T>>
columns, so notNumber
. This makes sense, but not from a user-perspective. We can just convert to Double first, then calculate it.The text was updated successfully, but these errors were encountered: