Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

219
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda