Kotlin / Kotlin/dataframe

Consider not showing small header delimiter if columnTypes = false in DataFrame.renderToString

Open
#1,912 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

It was recently introduced along with switching default columnTypes = true because two-row header is easier to confuse with data, so some small distinctive indicator is needed. Maybe it's better to only render it when there's type?
`println(df.renderToString(columnTypes = false))`
Actual:
```
name age city
---- ---- ----
Alice 30 Berlin
Bob 25 Paris
Charlie 35 London
```

Expected:
```
name age city
Alice 30 Berlin
Bob 25 Paris
Charlie 35 London
```

IMO it's not worth adding an extra parameter dedicated just for it because it somewhat conflicts with border parameter already. If we don't agree - let's just keep as is.

Contributor guide

Open the contributing guide

Research direction

Start at the DataFrame.renderToString entry point and reproduce the shown output with columnTypes = false. Update the rendering behavior so the small header delimiter is absent when columnTypes is false, then verify that rendering with columnTypes enabled still retains the delimiter and matches the intended output.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.