Tutorial: Practical Python – 4. Creating and Manipulating Arrays – Part 1

We often collect data as series of x and y values.  Time series data where a specific observation is made on a regular time interval (such as on a water level logger) or measurements taken along a spatial transect (such as an elevation profile) are good examples.  We have already learned that numbers can be stored in arrays in Python, but how do we manipulate or edit them?  What if we want to plot just a subset of the data, how do we get just the values we are interested in out of the arrays?

In this tutorial you will learn how to create, edit, and reference into one-dimensional arrays to allow you manipulate your data however you like!

 

Download the Jupyter notebook for this tutorial here: Tutorial4_ArrayIndexing_part1.pynb

Leave a Comment