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

feature request: to be able to use check programmatically and add some parameters #1016

Open
aborruso opened this issue Apr 27, 2022 · 0 comments

Comments

@aborruso
Copy link
Contributor

Hi,
if I run check on this file

id,text
a,b
a,b,c

I have

mlr :  mlr: CSV header/data length mismatch 2 != 3 at filename input.csv row 3.

It would be great to have a structured output, to use it to run some automatic cleaning. Having something like

{
  "valid": "false",
  "errors": [
    {
      "row": 3,
      "message": "CSV header/data length mismatch 2 != 3 at filename input.csv row 3."
    },
    {
      "row": 9,
      "message": "....."
    }
  ]
}

I can run a loop to delete 3 and 9 rows.

And it would be great to have two parameters: one to have in ouput only the rows without errors, and one to have only those with errors.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@aborruso @johnkerl and others