Using JupyterLab
|
JupyterLab can be used as a Python programming environment
You can create notebooks with codes, figures, links, text, and equations
You can run your codes in JupyterLab cell by cell
|
Repeating Actions with Loops
|
Use for variable in sequence to process the elements of a sequence one at a time.
The body of a for loop must be indented.
Use len(thing) to determine the length of something that contains other values.
|
Storing Multiple Values in Lists
|
[value1, value2, value3, ...] creates a list.
Lists can contain any Python object, including lists (i.e., list of lists).
Lists are indexed and sliced with square brackets (e.g., list[0] and list[2:9]), in the same way as strings and arrays.
Lists are mutable (i.e., their values can be changed in place).
Strings are immutable (i.e., the characters in them cannot be changed).
|
Pandas and Climate Data
|
Pandas DataFrames are much like spreadsheets.
Many of the concepts, and even the names of methods, are the same as for xarray.
Seaborn provides quick ways to plot the contents of DataFrames.
|