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

Data structure of "statistics" is dictionary #14

Closed
afuetterer opened this issue Aug 14, 2019 · 0 comments
Closed

Data structure of "statistics" is dictionary #14

afuetterer opened this issue Aug 14, 2019 · 0 comments
Assignees

Comments

@afuetterer
Copy link
Contributor

The Parser class in the library ddi.py creates a dictionary of lists:

result.json

{
  "statistics":
    {
      "names": ["valid", "invalid"],
      "values": [1, 0]
    }
}

Do not keep this behavior. Instead create a dictionary without the lists, looking like this:

result.json

{
  "statistics":
    {
      "valid": 1,
      "invalid": 0,
    }
}

See the dataset_schema for reference:

"statistics": {
"type": "object",
"properties": {
"Min.": {
"type": "number"
},
"1st Qu.": {
"type": "number"
},
"Median": {
"type": "number"
},
"Mean": {
"type": "number"
},
"3rd Qu.": {
"type": "number"
},
"Max": {
"type": "number"
},
"valid": {
"type": "number"
},
"invalid": {
"type": "number"
}
}
},

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

No branches or pull requests

3 participants