Brian Hulette created ARROW-2202:

             Summary: [JS] Add DataFrame.toJSON
                 Key: ARROW-2202
             Project: Apache Arrow
          Issue Type: Improvement
          Components: JavaScript
            Reporter: Brian Hulette

Currently, {{CountByResult}} has its own [{{toJSON}} 
method|], but 
there should be a more general one for every {{DataFrame}}.

{{CountByResult.toJSON}} returns:
  "keyA": 10,
  "keyB": 10,

A more general {{toJSON}} could just return a list of objects with an entry for 
each column. For the above {{CountByResult}}, the output would look like:
  {value: "keyA", count: 10},
  {value: "keyB", count: 10},

This message was sent by Atlassian JIRA

Reply via email to