Tutorial 4

Introduction to Pandas

Tutorial Description

Welcome to the Tutorial 4 on "Introduction to Pandas". Here's a brief overview of what you can expect in this tutorial:

Creating a pandas dataframe

  • From a list of lists
  • From a dictionary

Saving the dataframe

Tutorial Exercise

  • To a CSV file
  • To an Excel file

Opening a dataframe

  • From a CSV file
  • From an Excel file

Creating new columns inside the dataframe

The tutorial notebook and exercise could be found at JupyterHub on shared-storage/tutorials/tutorial4/exercise

Notes:

The symbol ~/ denotes the home folder, and using it ensures you save files in a location where you have writing rights. If you try to write directly to shared-storage without this symbol, the system may produce an error.