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

133
Views
i want to display count of each venue at which the team has won from csv file

here is my js code

const {match} = require("assert")
const csv = require("csv-parser")
const fs = require("fs")
const results = []

fs.createReadStream("IPL Matches 2008-2020.csv")
  .pipe(csv({}))
  .on("data", (data) => results.push(data))
  .on("end", () => {
for(let i=0;i<816;i++){
    if("Sunrisers Hyderabad"===results[i].winner){
      console.log(results[i].venue)
    }
 })

here is the console output of list of stadiums, i want to display it something like

Rajiv Gandhi International Stadium, Uppal:2

Feroz Shah Kotla:1

Rajiv Gandhi International Stadium, Uppal
Rajiv Gandhi International Stadium, Uppal
Feroz Shah Kotla
Subrata Roy Sahara Stadium
Rajiv Gandhi International Stadium, Uppal
Rajiv Gandhi International Stadium, Uppal
Rajiv Gandhi International Stadium, Uppal
Punjab Cricket Association Stadium, Mohali

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!