- Introduction to the Workshop and Tools
- Short Introduction to Programming in Python
- Starting With Data
- Indexing, Slicing and Subsetting DataFrames in Python
- Data Types and Formats
- Combining DataFrames with Pandas
- Data Workflows and Automation
- Making Plots with plotnine
Prior to attending the workshop, please download a copy of this repository as follows and extract it in your Downloads folder.
You will also need to follow the below instructions to configure your personal laptop. Please ensure that you have admin permissions if you are using a corporate laptop.
- Open https://docs.conda.io/projects/miniconda/en/latest/ with your web browser.
- Download Miniconda3 Windows 64-bit.
- Install by running the Miniconda Installer, using the recommended settings.
- After installing, open the "Anaconda Prompt (miniconda3)" program to use Miniconda 3.
- Open https://docs.conda.io/projects/miniconda/en/latest/ with your web browser.
- Download Miniconda3 macOS Apple M1 64-bit pkg.
- Install by running the Miniconda Installer, using the recommended settings.
- After installing, re-open Terminal to use Miniconda 3.
- Open https://docs.conda.io/projects/miniconda/en/latest/ with your web browser.
- Download the relevant package for your specific flavour of Linux.
- Open a Terminal window and navigate to your download directory.
- Type
bash Miniconda3-
- and then press Tab to autocomplete the full file name. The name of file you just downloaded should appear. Press Enter.
- You will follow the text-only prompts.
- To move through the text, press Spacebar.
- Type yes and press enter to approve the license.
- Press Enter to approve the default location for the files.
- Type yes and press Enter to prepend Miniconda to your PATH (this makes the Miniconda distribution the default Python).
- After installing, re-open Terminal to use Miniconda 3.
Environments allow you to have multiple sets of Python packages installed at the same time, making reproducibility and upgrades easier. You can create, export, lis, remove and update environments that have different versions of Python and/or packages installed in them.
You can create a conda environment for this workshop using the supplied environment.yml file which specifies the Python version and required packages.
- On Windows, open "Anaconda Prompt (miniconda3) or if using Mac/Linux, open Terminal.
- Navigate to this repository. For example, if you downloaded the CIC_Carpentries_Python respository in your Downloads directory, you could type the following.
cd Desktop cd CIC_Carpentries_Python-master
- To install the environment on any platform and activate the CIC_Carpentries_Python environment, type:
conda env create --file environment.yml conda activate cids-workshop
- Open https://code.visualstudio.com/ with your web browser.
- Download VS Code for your specific platform/Operating System.
- Run the VS Code Installer.
- Open VS Code and in the Extension sidebar and install the Python and Jupyter extensions.
- Using Anaconda for package management (cheatsheet) and setting up environments
- Python
- Jupyter Notebooks
- Getting Started with Python in VS Code