dataframe icon indicating copy to clipboard operation
dataframe copied to clipboard

GroupBy can't be properly formatted

Open revintec opened this issue 2 years ago • 2 comments

using Jupyter Lab 4.0.2 and latest versions of kotlin jupyter and kotlin/dataframe (don't know how to get kotlin jupyter and kotlin/dataframe version, but I just installed them today

after running dataFrame.groupBy{...}, the returned value is org.jetbrains.kotlinx.dataframe.impl.GroupByImpl the mem, ssd, vad columns are LongArrays, it is correctly formatted like this image but long model strings are shortened

I'd like to change that, but not globally, just for this dataframe. so I write the following code, but it has 3 problems

  1. LongArray columns are not properly rendered(there is no toHTML in GroupByImpl, and using into(...) results in the same problem image

  2. cellContentLimit=-1 is not working according to doc https://kotlin.github.io/dataframe/tohtml.html#configuring-display-for-individual-output image image

  3. cell text is wrapped, while the dataframe is also horizontally scrollable. how can we disable cell text wrapping? image

revintec avatar Jul 13 '23 21:07 revintec