Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have A/B/C... refer to unnamed columns when VisiData opens .xlsx files #81

Closed
anjakefala opened this issue Aug 21, 2017 · 1 comment
Closed

Comments

@anjakefala
Copy link
Collaborator

anjakefala commented Aug 21, 2017

When opening an xlsx file with visidata, colums are unnamed and instead contain the excel letter headers.

These default headers cannot be used as a reference for keys such as c or =.

File "visidata/vdtui.py", line 1511, in _getDisplayValue
    cellval = self.getter(row
File "visidata/addons/metasheets.py", line 75 in <lambda>
    vc.getter = lambda r,c=vc,s=sheet: LazyMapping(s, r)(c)
File "visidata/addons/metasheets.py", line56, in __call__
    return eval(col.expr, getGlobals(), self)
File "<string>", line 1, in <module>
NameError: name 'F' is not defined

Current workaround is to rename headers with ^.

@saulpw saulpw closed this as completed Oct 6, 2017
@saulpw
Copy link
Owner

saulpw commented Oct 6, 2017

in v0.97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants