Open Jolanrensen opened 5 months ago
Actually, we might be missing overloads for other value-like types as well, like LocalDateTime
, LocalDate
, Duration
, Instant
, Enum
, Temporal
, maybe more
And align the behavior with unfold
: https://github.com/Kotlin/dataframe/issues/677
Currently, running
results in:
This is because
toDataFrame()
defaults totoDataFrame { properties() }
, so it tries to dissect the properties of theIntArray
class in this instance.Instead, I believe this should create a
DataFrame<ValueProperty<IntArray>>
, like for the other primitives.There is a challenge to adding these though. I found adding the overload
Iterable<BooleanArray>.toDataFrame()
breaks calls toIterable<AnyBaseCol>.toDataFrame()
for some reason. And adding them like<B : BooleanArray?> Iterable<B>.toDataFrame()
is impossible, because arrays are illegal supertypes...