Python Programming for Data Science - Part 1

Overview

Data science is a discipline that uses scientific methods, processes and algorithms to extract meaningful information, knowledge and insights from structured and unstructured data.

The aim of this course is to provide an introduction to programming for data science, using the Python programming language. The course seeks to introduce the basics of the data science process, from collecting data, pre-processing it (cleaning/correcting it), performing exploratory data analyses, visualizing data, and sharing analysis results.

In order to complete the assignment (and in order to get the full benefit from the course), students will need access to a computer capable of running the open-source software used in the course and access to the Internet. A limited amount of class time will be allocated to working on the class assignment, so students should ensure that they have access to a computer outside of class.

The course will rely on Jupyter Notebooks for interactive Python programming as they are widely used in Data Science.

Programme details

Course begins: 19 Sept 2023

Week 0: Course orientation

Week 1: Introduction to Data Science. Introduction to Git and the Anaconda environment

Week 2: Python basics: built-in types, functions and methods, if statement

Week 3: Python data structures: list, dictionaries, tuples; for...in loops

Week 4: NumPy

Week 5: Pandas for data science I 

Week 6: Pandas for data science II

Week 7: Matplotlib for Data visualisation

Week 8: Object-oriented programming: classes, inheritance, and applications 

Week 9: Data gathering and cleaning. Text pre-processing for Natural Language Processing (NLP)

Week 10: Introduction to experimental design

Certification

To complete the course and receive a certificate, you will be required to attend and participate in at least 80% of the live sessions on the course and pass your final assignment. Upon successful completion, you will receive a link to download a University of Oxford digital certificate. Information on how to access this digital certificate will be emailed to you after the end of the course. The certificate will show your name, the course title and the dates of the course you attended. You will be able to download your certificate or share it on social media if you choose to do so.

Fees

Description Costs
Course Fee £280.00
Take this course for CATS points £10.00

Funding

If you are in receipt of a UK state benefit, you are a full-time student in the UK or a student on a low income, you may be eligible for a reduction of 50% of tuition fees. Please see the below link for full details:

Concessionary fees for short courses

Tutor

Dr Nick Day

Dr Nicholas Day teaches computer programming in C#, C++, Java and Python at both Buckinghamshire New University and Oxford University. Nicholas started his career as an Associate Lecturer at Buckinghamshire New University in late 2014, progressing to become a Graduate Teaching Associate in February 2020 and is now a Lecturer at the same institution, since August 2021. He completed the PGCert in Teaching and Learning in 2015 and also acquired fellowship of AdvanceHE (previously Higher Education Academy). Between 2016 and 2019, Nicholas assisted Dr Vasos Pavlika with the delivery of introductory programming courses in C++ and Java for the Department for Continuing Education at Oxford University. He was empanelled as a Department Tutor in 2019 and started delivered an Introduction to Object-Oriented Programming Using Java, later adapting the course for online delivery in 2022. He has also started researching and teaching Artificial Intelligence and Data Science material.

Nick’s scholarly interests are Computer Science Education (CSEd), Computing Education Research (CER), and online pedagogy. He completed his PhD in March 2020, which investigated the learning and teaching of computer science education, specialising in delivery of computer programming modules. Post-PhD completion, Nicholas is involved with Knowledge Transfer Partnership (KTP) applications and in discussion with data-driven companies regarding research projects and consultancy work. Nicholas also now supervises current PhD students in fields associated with Data Science and Virtual Reality, in addition to mentoring departmental colleagues who are undertaking PhD research. During the COVID-19 pandemic, Nicholas began teaching online and recording videos to increase access and engagement with educational material. He is passionate about pedagogy and utilises his research findings to inform curriculum design.

Course aims

  • To learn the basic aspects of Python programming for data science.
  • To gain an appreciation for the end-to-end process of obtaining data, processing it, through to presenting results.

Course Objectives:

  • To be able to build a simple data processing pipeline by the end of the course.

Teaching methods

Each week's session will consist of lectures and hands-on programming exercises, class discussions and interactive programming demonstrations by the lecturer.

Learning outcomes

At the end of the course, the student will be able to write procedural code using the Python language and tools to:

  • import data from local and/or remote sources and preprocess it;
  • extract significant information from the gathered data;
  • visualise the relevant features extracted from the data;

After attending this course, students will know

  • how to perform fundamental Python operations such as variable creation, numerical operations on scalar, vectors and matrices,  iteration through a collection, manipulation of elements in a collection;
  • how to use NumPy and pandas to import a dataset and extract important statistics from it using techniques such as split-apply-combine (for example, finding the mean, median or max of a quantitative variable for each category in a categorical variable);
  • given a dataset, how to select the appropriate visualisation graph depending on the information to be conveyed, and use the matplotlib library to draw it and add title, captions and figure legends;
  • how to create and add state and behaviour to a class in Python;
  • how to use nltk to preprocess a text and convert it to a numerical representation that can be manipulated by information retrieval algorithms. (e.g. for sentimental analysis, semantic search or machine learning algorithms).

Assessment methods

Students will be asked to submit a portfolio of exercises for their coursework assignment. I will give the first exercise midway through the course for early submission, the second to be completed at the end of the course. 

In order to complete the assignment (and in order to get the full benefit from the course), students will need access to a computer capable of running the open source software used in the course and access to the Internet. Only a limited amount of class time will be allocated to working on the assignment, so students should ensure that they have access to a computer outside of class.

Students must submit a completed Declaration of Authorship form at the end of term when submitting your final piece of work. CATS points cannot be awarded without the aforementioned form - Declaration of Authorship form

Application

We will close for enrolments 7 days prior to the start date to allow us to complete the course set up. We will email you at that time (7 days before the course begins) with further information and joining instructions. As always, students will want to check spam and junk folders during this period to ensure that these emails are received.

To earn credit (CATS points) for your course you will need to register and pay an additional £10 fee per course. You can do this by ticking the relevant box at the bottom of the enrolment form or when enrolling online.

Please use the 'Book' or 'Apply' button on this page. Alternatively, please complete an enrolment form (Word) or enrolment form (Pdf).

Level and demands

Experience in using a programming or scripting language is beneficial. The basic elements of programming using the Python programming language will be introduced throughout the course. However, each student should consider that this course requires a certain amount of homework (2–3 hours per week) to familiarise with the concepts explained during the class. This is especially true for students who are not familiar with programming. This is a course on data science, so I will discuss some mathematical concepts even though I will try to keep these to a minimum. Expect some exposition to (1) linear algebra (e.g. matrices operations), (2) statistics, and (3) calculus. 

Students who register for CATS points will receive a Record of CATS points on successful completion of their course assessment.

To earn credit (CATS points) you will need to register and pay an additional £10 fee per course. You can do this by ticking the relevant box at the bottom of the enrolment form or when enrolling online.

Coursework is an integral part of all weekly classes and everyone enrolled will be expected to do coursework in order to benefit fully from the course. Only those who have registered for credit will be awarded CATS points for completing work at the required standard.

Students who do not register for CATS points during the enrolment process can either register for CATS points prior to the start of their course or retrospectively from the January 1st after the current full academic year has been completed. If you are enrolled on the Certificate of Higher Education you need to indicate this on the enrolment form but there is no additional registration fee.

Most of the Department's weekly classes have 10 or 20 CATS points assigned to them. 10 CATS points at FHEQ Level 4 usually consist of ten 2-hour sessions. 20 CATS points at FHEQ Level 4 usually consist of twenty 2-hour sessions. It is expected that, for every 2 hours of tuition you are given, you will engage in eight hours of private study.

Credit Accumulation and Transfer Scheme (CATS)

Selection criteria

Before attending this course, prospective students will know:

  • The fundamentals of linear algebra: what is a matrix and how matrix addition and multiplication are performed.
  • The following fundamental concepts of statistics: mean, median, variance and standard deviation, interquartile range.
  • The fundamentals of algebra: real and complex numbers, exponential and logarithm, and trigonometric functions.