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

268
Views
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
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!