Working with data and plotting: pandas

This lesson introduces some techniques for working with data sets in pandas and producing plots. It covers:

  • A brief introduction to Jupyter notebooks.
  • Introduction to Pandas.
  • Introduction to matplotlib.

Prerequisites:

In order to complete the lesson you should be familar with the content of the course:

  • Introduction to Python
  • Aware of numpy

Schedule:

Approximate timings for the lesson:

Time Episode Description
0:00 Jupyter Notebooks How to use a jupyter notebook
0:00 Pandas Introduction An introduction to pandas
0:45 Reading a file with pandas Reading data into pandas
1:00 Plotting with pandas More plots using matplotlib with pandas
1:30 Reading web data Read data from the web into pandas
2:00 Fitting data Fit data with lines of best fit
3:00 Exploring matplotlib's features A tour of some of the feature of matplotlib
4:00 Finish

Setup:

Log on to the server for today's course at https://rss.jupyterhub.bath.ac.uk. We will need to make copy the data-plotting folder, which will also use for the notebooks we will generate during the lesson. Do this by opening the Welcome.ipynb notebook and following the set up for Data and plotting. Data and files for the research software courses is available in the folder data-plotting.