DATA422-19S2 (C) Semester Two 2019

Data Wrangling for Data Science

15 points

Start Date: Monday, 15 July 2019
End Date: Sunday, 10 November 2019
Withdrawal Dates
Last Day to withdraw from this course:
  • Without financial penalty (full fee refund): Friday, 26 July 2019
  • Without academic penalty (including no fee refund): Friday, 27 September 2019


This course develop students skills in data cleaning and processing, data integration techniques and implementing data wrangling workflows for a real world datasets.

Data wrangling is the iterative process of transforming data from a source format into a format suitable for storage, analysis, visualization, communication. The process is constrained by the requirement of preserving as much of the relevant information contained in the dataset, as well as ensuring an ethical treatment of the data subject, e.g., protecting their security and privacy. The course aims to provide the students the tools to handle different source formats (csvs, spreadsheets, web pages, apis, …), some target formats (long / wide data frames, packages, …) and a variety of data kinds (dates, numeric, strings, text, …). Wherever possible, the students will work on real-world datasets and ethical facets of data wrangling will be explicitly discussed in class. During the course, R will be the default programming language, and the use of JupyterLab and Rstudio strongly encouraged. Reference to other programming languages (Python, Julia) will be provided. Peer, group, and class interaction will be explicitly required during the course.

Learning Outcomes

Having engaged in learning during the course, students will be able to:
- Access (read in) different data formats;
- Interact (manipulate) relational dataset (e.g., data frames) and hierarchical dataset (e.g., JSON);
- Output (write to) different data formats;
- Analyse a dataset in order to identify its format and possible errors;
- Analyse a data wrangling problem: identify the available source format(s); define the suitable target format(s) and the relevant ethical / technical constraints; develop a flow to transform data from source to target formats.


Subject to approval of the Head of Department of Mathematics and Statistics.

Timetable 2019

Students must attend one activity from each section.

Lecture A
Activity Day Time Location Weeks
01 Tuesday 14:00 - 16:00 Meremere 108 Lecture Theatre 15 Jul - 25 Aug
9 Sep - 20 Oct
Lab A
Activity Day Time Location Weeks
01 Friday 10:00 - 12:00 Ernest Rutherford 465 15 Jul - 25 Aug
9 Sep - 20 Oct
02 Friday 15:00 - 17:00 Ernest Rutherford 464 Computer Lab 15 Jul - 25 Aug
9 Sep - 20 Oct
03 Friday 13:00 - 15:00 Ernest Rutherford 464 Computer Lab 15 Jul - 25 Aug
9 Sep - 20 Oct
04 Thursday 16:00 - 18:00 Ernest Rutherford 464 Computer Lab 15 Jul - 25 Aug
9 Sep - 20 Oct

Course Coordinator

For further information see Mathematics and Statistics Head of Department

Textbooks / Resources

Suggested Textbook:
Stephanie Locke, Data Manipulation in R

Indicative Fees

Domestic fee $1,002.00

* Fees include New Zealand GST and do not include any programme level discount or additional course related expenses.

For further information see Mathematics and Statistics.

All DATA422 Occurrences

  • DATA422-19S2 (C) Semester Two 2019