COM6018 Data Science with Python

Week 1: Introduction to Python

Jon Barker

KB-KB-CS

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.
COM6018 Data Science with Python

In this lab

  • Introduction to Python
  • Working with Jupyter Notebooks
Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.
COM6018 Data Science with Python

Lab Demonstrators

There are three Graduate Teaching Assistants (GTAs) who are here to help you.

Robbie
Robbie
Wing
Wing
Mattias
Mattias

If you are stuck, please just raise a hand.

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.
COM6018 Data Science with Python

Today's Lab

If you have cloned the module's GitHub repository then you should see,

materials/labs/
├── 000_Introduction.md
├── 010_python_intro.ipynb
├── data
│   ├── Mine_Dataset.xls
│   ├── ch4.csv
│   ├── co2.csv

The lab is notebook is the file 010_python_intro.ipynb

Or you can find it at https://uos-com-6018.github.io/COM6018/

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.
COM6018 Data Science with Python

The Jupyterbook Website

https://uos-com-6018.github.io/COM6018/

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.
COM6018 Data Science with Python

Today's Lab

From here you can download the notebook as an ipynb file to run it on your own machine. Or you can open it on Google Colab.

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.
COM6018 Data Science with Python

Running the notebook

Once you have downloaded the .ipynb file, you can run it on your own machine.

jupyter notebook 010_python_intro.ipynb

Or, if you have installed VS Code, you can open the notebook in VS Code and use the VS Code Jupyter extension.

Copyright © 2023–2025 Jon Barker, University of Sheffield. All rights reserved.