Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
846 stars 63 forks source link

Render FormattedFrame stored inside columns as HTML #944

Closed koperagen closed 1 week ago

koperagen commented 2 weeks ago

With this change it will be possible to format structured data: image

df.groupBy { receiverType }.toDataFrame("api")
    .convert { api }
    .with { it.format { all() }.where { refine || interpretable }.with { background(green) } }
Jolanrensen commented 2 weeks ago

So, now you can have different configurations for each different nested DataFrame? That's cool :)

@ermolenkodev Did you ever get to supporting formatting in Notebook tables? If so, you'd probably also need to take this into account.

koperagen commented 2 weeks ago

So, now you can have different configurations for each different nested DataFrame? That's cool :)

Yes. For example, i wanted to have green background for all dataframe API that are annotated with refine or interpretable. Later i decided that it will be more convenient (for those looking at the table) to groupBy this dataframe by receiver type and have the same formatting. But i couldn't do it anymore, without this change