---
layout: default
title: Process the data
---

# Process the data

> Nelisa has some weekly records of her sales. She would like to analyze the data to understand her business better.

Nelisa would like to use this data to determine:

* The most popular product sold weekly
* The least popular product sold weekly
* The most popular category sold weekly
* The least popular category sold weekly

She is also been keeping track of the products she bought each week.

She would also like to calculate:

* The most profitable product for each week.
* The most profitable category for each week.

Write a program that reads the files for each week and print the results to the screen in a format that can easily be sms'ed to her.

## Here's the data

* [week1](/csv-files/week1.csv)
* [week2](/csv-files/week2.csv)
* [week3](/csv-files/week3.csv)
* [week4](/csv-files/week4.csv)
* [purchases](/csv-files/purchases.csv)

## Remember to

* write unit tests using mocha;
* modularize your code;
* write small focussed functions.

##  Learning areas

* Data processing algorithms
    * Grouping data
    * Filtering data

---
layout: default
title: Process the data
---

# Process the data

> Nelisa has some weekly records of her sales. She would like to analyze the data to understand her business better.

Nelisa would like to use this data to determine:

* The most popular product sold weekly
* The least popular product sold weekly
* The most popular category sold weekly
* The least popular category sold weekly

She is also been keeping track of the products she bought each week.

She would also like to calculate:

* The most profitable product for each week.
* The most profitable category for each week.

Write a program that reads the files for each week and print the results to the screen in a format that can easily be sms'ed to her.

## Here's the data

* [week1.csv](/csv-files/week1.csv)
* [week2.csv](/csv-files/week2.csv)
* [week3.csv](/csv-files/week3.csv)
* [week4.csv](/csv-files/week4.csv)
* [purchases.csv](/csv-files/purchases.csv)

## Remember to

* write unit tests using mocha;
* modularize your code;
* write small focussed functions.

##  Learning areas

* Data processing algorithms
    * Grouping data
    * Filtering data

Add names for linked files
Add names for linked files