Replies: 1 comment 2 replies
-
It created a "new" sheet when you opened it. Note that the first 30 sheets you're seeing are all XlsxIndexSheet (the list of tabs in your xlsx file), whereas the new one is an XlsxSheet (the actual Table).
On joined sheets, there's a hidden column that contains the sheet. Try using
What kind of join are you doing? An
You could make a macro. There's no way to do this completely automatically though. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got 30 xlsx sheets, each around 30k.
I'm trying to follow the directions here to pull rows from these files into a single sheet so I can work with them:
https://jsvine.github.io/intro-to-visidata/intermediate/joining-sheets/
What's not clear to me is when I open the files w/
vd *.xlsx --skip 3
to remove the headers, I see the right number of files in Sheets (31):But when I go into each one to go to the right tab:
Give them all headers and select the key column:
When I go bac k to Sheet, it creates a copy:
Should it do that for just taking a sheet, giving it headers and then designating a key column?? I'm fine if it does.
Where I'm getting stuck is that when I join a couple of sheets, a few things are making the data hard to work with:
All the data is combined in a way where I don't know which data came from which sheet. How do I mark each row so I know what sheet it ame from.
Is there a way to have marked the specific rows I wanted to match in the 1st sheet and in all the subsequent sheets I slect, have matches only for those rows in the key columns be a part of the join?
Is there a way--since all the files are uniform--to take the actions of giving them all headers (
gz^
) and selecting the first column (campaign) as the key so I don't have to go and do this in each of the 30 files?Beta Was this translation helpful? Give feedback.
All reactions