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

Missing step in whirlwind demo of join #246

Closed
lhayhurst opened this issue Oct 27, 2020 · 1 comment · May be fixed by #248
Closed

Missing step in whirlwind demo of join #246

lhayhurst opened this issue Oct 27, 2020 · 1 comment · May be fixed by #248

Comments

@lhayhurst
Copy link

lhayhurst commented Oct 27, 2020

Hi, I was working through the whirlwind demo and I think there is a missing step in the join section of the demo.

xsv join --no-case  Country sample.csv Abbrev countrynames.csv | xsv table

In the search command prior, there is no output to sample.csv.

xsv search -s Population '[0-9]' worldcitiespop.csv \
  | xsv select Country,AccentCity,Population \
  | xsv sample 10 \
  | xsv table

As an aside, I tried to fix it with this:

xsv search -s Population '[0-9]' worldcitiespop.csv \
  | xsv select Country,AccentCity,Population \
  | xsv sample 10 \
  | xsv table -o sample.csv

And then did the join, but am getting an error message:

$ xsv headers sample.csv
1   Country  AccentCity   Population
$ xsv join --no-case  Country sample.csv Abbrev countrynames.csv 
Selector name 'Country' does not exist as a named header in the given CSV data.

Thank you in advance, xsv is amazing.

@lhayhurst
Copy link
Author

I was able to fix the join issue by doing this:

xsv search -s Population '[0-9]' worldcitiespop.csv \
  | xsv select Country,AccentCity,Population \
  | xsv sample 10 > sample.csv

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

Successfully merging a pull request may close this issue.

1 participant