Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Missing step in whirlwind demo of join #246

@lhayhurst

Description

@lhayhurst

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions