Kotlin / Kotlin/dataframe

GroupBy can't be properly formatted

Open
#423 2 comments 0 reactions 1 assignee View on GitHub

@koperagen is already working on this.

Since Jul 14, 2023.

bug enhancement
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

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
  1. cellContentLimit=-1 is not working according to doc
    https://kotlin.github.io/dataframe/tohtml.html#configuring-display-for-individual-output
image image
  1. cell text is wrapped, while the dataframe is also horizontally scrollable. how can we disable cell text wrapping?
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.