Skip to content

How do I create nested tables ? #2611

Answered by midichef
AllergicMushroom asked this question in Q&A
Discussion options

You must be logged in to vote

I see. For nested table, you are referring to cells containing sequences like lists or dictionaries, which can be expanded with expand-col.

For your problem 1, that saving expanded columns loses the ability to contract them, I don't know if that's desired behavior. Maybe @saulpw can comment?

For problem 2, where you want to add to the list contained in a cell. You can use z= (for setcell-expr) to set the current cell to any Python expression. Expressions you could use to add a value are:
[1,2,3,4]
A + [4]
curcol + [4] (reading the value of the current column where the cursor is, instead of using the column name A)

If you want to simplify this process, you could make a custom command in yo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AllergicMushroom
Comment options

@midichef
Comment options

Answer selected by AllergicMushroom
@AllergicMushroom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants