Is there a way to make a parser for Kb/Mb/Gb for a DataFrame... If I'd like it to be a number for plotting, but keep it as Kb/Mb/Gb for viewing, something like formatting in Excel? Maybe using a
value class
with an overrided
toString
?
n
Nikita Klimenko [JB]
06/17/2024, 4:55 PM
Wrapper class indeed seems like a best option here. It can even extend Number.
But some things that work for, let's say Double, might not work for this type automatically:
https://github.com/Kotlin/dataframe/issues/610