Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13271

[JS] DataFrame Count By - TypeError: df.countBy is not a function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • JavaScript
    • None

    Description

      The following benchmark fails with TypeError: df.countBy is not a function.

          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)
          );
      

      Attachments

        Activity

          People

            dianaclarke Diana Clarke
            dianaclarke Diana Clarke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: