Diana Clarke created ARROW-13271:
------------------------------------
Summary: [JS] DataFrame Count By - TypeError: df.countBy is not a
function
Key: ARROW-13271
URL: https://issues.apache.org/jira/browse/ARROW-13271
Project: Apache Arrow
Issue Type: Bug
Components: JavaScript
Reporter: Diana Clarke
The following benchmark fails with {{TypeError: df.countBy is not a function}}.
{code}
b.suite(
`DataFrame Count By`,
...countBys.map((column: string) => b.add(
`dataset: ${name}, column: ${column}, length:
${formatNumber(df.length)}, type: ${df.schema.fields.find((c)=> c.name ===
column)!.type}`,
() => df.countBy(column)
)),
b.cycle(cycle)
);
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)