Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
How to calculate maximum of a dynamic column using arquero (javascript)?

Suppose you have a column name (of table data) in the string variable colname ... you can try to do something like

let colname = "something"
data.rollup({
  "max": d => aq.op.max(d[colname])
})

but it won't work because colname is not defined in that scope.

You might try to escape but that doesn't work either

let colname = "something"
data.rollup({
  "max": aq.escape(d => aq.op.max(d[colname]))
})

The non-dynamic version does work however.

data.rollup({
  "max": d => aq.op.max(d.something)
})

Is there some way of doing this in arquero? Just a column operation like max, min, mean etc?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!