crate / crate/sphinx-csv-filter
Feature Request Verticle Tables from a Horizontal Source
- Dominant language
- Python
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
So I have some data in a CSV table that looks something like this:
| id | header | header2 | header3 | header4 | ... |
|:----|:-----------|:-------------|:-------------|:------------|:----|
| t1 | a1 | b1 | c1 | d1 | ... |
| t2 | a2 | b2 | c2 | d2 | ... |
| ... | | | | | ... |
Then in my documentation I can write about an individual ID and reference it like this (using myst-parser markdwon in my example
This thing blah blah blah.
```{csv-filter}
:header-rows: 1
:file: data/allmedata.csv
:include: {0: '(id|t1.*)'}
```
And get a table with just t1's data like:
| id | header | header2 | header3 | header4 | ... |
|:----|:-----------|:-------------|:-------------|:------------|:----|
| t1 | a1 | b1 | c1 | d1 | ... |
It's very useful. But if I have too many columns it is hard to to read and especially when putting it into non-web formats it can look pretty sketch. It would be nice to be able to have the ability to make the table vertical with an option like `:make_vert: true` and get a table like :
| id | t1 |
|:---|:----|
| header | a1 |
|header2 | b1 |
| header3 | c1 |
| header4 | d1 |
| ... | ... |
Contributor guide
Assessment
This issue has not been assessed yet.