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

Add nullcount to stats command #198

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

Conversation

scpike
Copy link

@scpike scpike commented Dec 13, 2019

This adds a --nullcount option to xsv stats that keeps track of the number of null values for each column as requested in #48. I just added a single counter to the Stats struct rather than a new type like TypedSum, etc. but happy to refactor however you'd like.

I do wonder whether this this should be enabld by default? It only requires a counter per field, so it seems more consistent with the current behavior for it to be enabled by default.

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.

None yet

1 participant