-
Notifications
You must be signed in to change notification settings - Fork 7
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
Getter for json output for discrete (categorical) value columns #426
Getter for json output for discrete (categorical) value columns #426
Conversation
ah, didn't realize you had already picked this up @rmanaem. |
@surchs No worries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @jarmoza! I requested a minor change in one of the test cases, let me know what you think.
Just mentioning a couple of things I noticed here:
|
Added a test case for `MissingValues` in `getCategoricalJsonOutput` getter's unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @rmanaem for taking on the PR! I read through the whole thing and left some comments. I think the missingValues
implementation is assuming the wrong data structure for missingvalues
(it's an array, not an object). Could you fix that and take a look at some of the other comments (:cherries: are just nice-to-have's you can ignore).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #406
See also #408
getCategoricalJsonOutput
that takes a column name and outputs a json object with annotated values for that column that is compliant with the schema as noted in getter to create JSON representation of discrete column #406store-getter-getCategoricalJsonOutput.cy.js
with tests for schema compliance and value/value formatting checks for the'IsAbout'
and'Levels'
sections of the json output