Skip to content

--select-columns #10

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

--select-columns #10

wants to merge 4 commits into from

Conversation

seamusabshere
Copy link
Member

technically redundant with xsv select, but sometimes when processing very large files you don't want to emit all that data to a pipeline just to immediately discard it

technically redundant with `xsv select`, but sometimes when processing very large files you don't want to emit all that data to a pipeline just to immediately discard it
/// So if you pass `--clean-column-names=stable`, and your original column name is "Column Name",
/// you should pass "column_name" here.
#[structopt(long = "select-columns")]
select_columns: Option<String>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i chose to implement this as a single argument with a csv, unlike --drop-row-if-null, because you could easily have 100 columns you want to select out of 1000

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 this pull request may close these issues.

1 participant