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.