Oumohgh/Data_Exploration ? reverse-engineered prompt

Reverse engineered prompt

Build me a small JavaScript project that explores and cleans a CSV dataset for a second hand clothing company called Sell4All.

I want a script that reads the raw data, shows a quick summary like number of rows, column names, basic types, and the first few lines, then calculates a few simple stats like average and median age and spending, plus the median age by country. After that, clean the data by removing rows with spending under 10 euros and duplicate rows, then export a cleaned CSV with only Country, Age, Gender, and Customer spendings.

Also create a simple browser visualization that shows a bar chart of spending by country using the cleaned or exported data. Keep everything working with relative paths so it runs on any machine, and make sure the Node script can generate the data file the browser chart needs. If you need to check current docs for any libraries, feel free to look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab