Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

270
Visualizações
Best way to query csv data with javascript

I've been working with pandas in python to display graphs with plotly but now I want to move to javascript because I decided to (try to) build a react app. I'm reading the csv files using papaparser but it's not like pandas where you can make queries so for example I have the following csv file, what would be the best way to get arrays for combination of "Region" and "Serie"? In python would be:

target_region = df.query('Region == @region').drop('Region', axis=1).set_index('Serie').T

In javascript I'm thinking on building a loop that will read and save "Region" and "Serie" columns on two different arrays, then delete the duplicated values of them, then looping that the array of "Region" and "Serie" to save all the combinations values into new arrays that then will be displayed in a graph. But I may be re inventing the wheel or there are easier ways to do it, hopefully somebody knows about it. Thanks for helping.

Here it is the data: enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda