Skip to content
Discussion options

You must be logged in to vote

As an experiment, I drafted some expression code for .visidatarc that lets you refer to a column called v.a0 by using v_a0. It translates any column name characters in '.,<>()[]+-/% ' to underscores (including spaces). So in an expression, you can refer to a column a[0] using a_0_ or a column w - margin as w___margin.

I think it's only suitable for advanced users to experiment with, however. One thing to remember if you try it: any future changes to evalExpr() in sheets.py would need to be worked back into this code in your .visidatarc.

## modification to refer to columns in expressions, if they have characters like . or [ in them, by using _ in place of such special chars
# 2025-07-26 ve…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cool-RR
Comment options

@ajkerrigan
Comment options

@cool-RR
Comment options

@midichef
Comment options

Answer selected by cool-RR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants