Skip to content

How can I get a list of all columns in a sheet? #1081

Answered by ajkerrigan
halloleo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there @halloleo - there are a couple good ways to get column overviews in VisiData. Using some sample data as an example, your csvcut -n reference shows:

> csvcut -n sample_data/benchmark.csv 
  1: Date
  2: Customer
  3: SKU
  4: Item
  5: Quantity
  6: Unit
  7: Paid

With that file open in VisiData, Shift+C opens a "Columns" sheet that lists column names vertically along with a number of other column-level properties.

 name     ║ width#| height#| type | fmtstr | value                                | expr | aggregators ║
 Date     ║    18 |      1 |      |        | 7/3/2018 1:47p                       | 0   #|             ║
 Customer ║    20 |      1 |      |        | Robert Armstro…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@halloleo
Comment options

@ghost
Comment options

@halloleo
Comment options

@saulpw
Comment options

Answer selected by halloleo
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