Week by week
You will find the course announcements and daily activities here.
Week 1 : Sept 30 - Oct 6
Class 1
- Course introduction slides
- Set up of GitHub repository for in-class coding sessions.
- Covered Python review up to the end of the variables section.
- In your
EDS-220/eds220-2024-in-class
directory, create a new Python notebook calledweek1-pandas-series.ipynb
. - Read the notes chapter on
pandas
series data frames and follow along with the code. - Solve the check-in exercises. We’ll present these during class.
- Make a summary of the lesson. What are the most important concepts or ideas?
Class 2
- Finished Python review.
- Student presentations of
pandas.Series
andpandas.DataFrames
exercises
Discussion section
There’s no setup for this week’s discussion section. We’ll follow the materials in Discussion Section 1.
Week 2 : Oct 7 - Oct 13
Class 3
- Completed the following activity to add the
data/
directory to the.gitignore
file of theEDS-220/in-class-notebooks/
directory.
Setup:
Download the CSV file
wetlands_seasonal_bird_diversity.csv
from our shared drive.In the workbench 1 server, inside your
EDS-220/in-class-notebooks/
directory, create a new directory calleddata
.Using the file navigation panel, upload the
wetlands_seasonal_bird_diversity.csv
file to thedata/
directory.
In the terminal:
- Verify you are in the
in-class-notebooks/
directory by usingpwd
. Your output should look like this:
- Run
git status
. At the end of the output you’ll see:
This means git knows the data/
directory exists and we have the risk of adding it to a commit.
- Run
ls
to see the files in the directory. Your output will look like this, notice the.gitiginore
file is not listed:
- Run
ls -a
to see all files in the directory, including hidden files (those that start with a period.
). At this point, your output will look like this:
. README.md
.. data
.git week1-lesson1-python-review.ipynb
.gitignore week1-lesson3-pandas-subsetting.ipynb
.ipynb_checkpoints
Run
nano .gitignore
. This will open the.gitignore
file in thenano
editor.Add the
data/
folder to the.gitignore
file by adding this text at the top of the file:
- Once you have made your changes, save the file:
- In
nano
, pressCTRL + O
(the letter O, not zero) to save. - Press
Enter
to confirm the file name (.gitignore
).
Exit the editor by pressing
CTRL + X
.Run
less .gitignore
to scroll through the.gitignore
file and verify the changes are there.
- Use the arrow keys or
Page Up
/Page Down
to scroll through the file. - Press
q
to exit.
Run
git status
and check the output. Thedata/
directroy will no longer be listed!Commit and push your changes to the
.gitignore
.
- Covered
pandas
subsetting notes up to selecting rows using a condition.
- In your
EDS-220/eds220-2024-in-class
directory, create a new Python notebook calledweek2-basic-plotting.ipynb
. - Read the notes on basic plotting up to and including the “updating the index” section and follow along with the code.
- Solve the check-in exercises. We’ll present these during class.
- Make a summary of this part of the lesson. What are the most important concepts or ideas?
Class 4
- Finished
pandas
subsetting notes. - Student presentations of basic plotting exercises
- Covered basic plotting up to scatter plots. The last two sections, about bar plots and histograms were assigned as reading.
Discussion section
Complete steps 1,2 and 3 of the second discussion section to load the data before the discussion section. You’ll be working on exercises 4-9 during section, so it is important that you have the data ready to go tomorrow.
Check-in with your discussion section teams via Slack just to make sure you’re all ready! :raised_hands:
Homework announcements
For your upcoming assignment submission, you’ll be downloading your notebooks and then uploading them to Gradescope. Before you upload your finished notebooks to Gradescope, please rename your notebooks so they are called
hwk1-task2-corals-YOURLASTNAME.ipynb
andhwk1-task3-earthquakes-YOURLASTNAME.ipynb.
It’s important to do this so we can keep track of resubmissions.
Thanks!
Here’s updates about how auto-grading will work in this first assignment:
- If you want to know your autograder score at any point, you may upload your notebook to the
Homework 1 Task 2 - AUTOGRADER CHECK ONLY
orHomework 1 Task 3 - AUTOGRADER CHECK ONLY
assignments on gradescope.- Once you submit your assignment, you will be able to see your total score for the auto-grading, not the score for individual questions.
- If you don’t have a 20/20 score in your auto-grade questions, it means there is some mistake with your code and you should go back and review it. If you can’t figure out where the issue is, discuss it with other people (first option always!), come see Annie or Carmen during OH, or use Slack.
- The
AUTOGRADER CHECK ONLY
assignments on gradescope are strictly for you to see how you did on the assignment. We will not be using these grades at all - You must still submit your final assignment to the
Homework 1- Task 2 - Corals
andHomework 1 - Task 3 - Earthquakes
assignment - Make sure you’re keeping up with your classmate’s questions and answers on Slack.
- When submitting your final notebook, please make sure to follow the instructions above regarding how to name the notebook
Thanks for your patience as we work through these initial Autograder kinks!
Week 3 : Oct 14 - Oct 20
Class 5
- Covered updating dataframes up to first example of
SettingWithCopyWarning
.
- In your
EDS-220/eds220-2024-in-class
directory, create a new Python notebook calledweek3-groupby.ipynb
. - Read the notes chapter on grouping and follow along with the code.
- Summarize the lesson and solve the check-in exercise. We’ll present these during class.
Class 6
Finished updating dataframes notes.
Went over how to update the message in the last commit when it hasn’t been pushed yet using
Discussion of grouping notes by students.
Covered conda environments notes up to exercise 7.
Discussion section
Complete steps 1,2 and 3 of the third discussion section to load the data before the discussion section. You’ll be working on exercises 4-8 during section, so it is important that you have the data ready to go tomorrow.
Check-in with your discussion section teams via Slack just to make sure you’re all ready!
Week 4 : Oct 21 - Oct 27
Class 7
- Built conda environment for the course.
Open VSCode on your computer.
Clone your
eds220-2024-in-class
GitHub repository. You can do it using the command palette.Download the following YAML file and move it to the top of your
eds220-2024-in-class
local directory: https://github.com/MEDS-eds-220/MEDS-eds-220-course/blob/main/eds-220-env.ymlOpen a terminal inside VSCode and in it:
- Verify you are in the
eds220-2024-in-class
directory. - Verify that the
eds-220-env.yml
file is in the directory. - Run the following conda command to build the environment used for the course:
It will take about 10 minutes to build the environment. Once conda has finished, verify that the environment is listed. Inside VSCode, you’ll be able to select the eds220-env
kernel to run your notebooks.
- Covered time series notes.
Read the notes on coordinate reference systems and vector data formats. Most of it should be reciew from EDS 223. We will have some questions to test your understanding of key concepts at the start of the next class.
Class 8
Covered geopandas
notes.
Discussion section
No work to do ahead of the discussion section.
Week 5 : Oct 28 - Nov 3
Class 9
Class 10
- Covered notes on streamlining your code up to creating the power sources map.
Carmen’s office hour today will be 3-4 at her office. Thank you!
Read notes on data merging
Discussion section
No work to do ahead of the discussion section.
Week 6 : Nov 4 - Nov 10
Class 11
- Finished notes on streamlining your code up to creating the power sources map.
Finish reading functions notes and prepare exercie at the end of section.
Class 12
- Covered the reprojecting notes.
We started from a pre-filled notebook that students transferred to their in-class coding directory via the terminal. The pre-filled notebook is in this location in workbench-1:
The general bash command to copy a file is:
Discussion section
First activity will be solving the short exercise at the end of Monday’s lesson (green box).
The rest of the discussion section will be used to work on assignment 3 with your teams. Please come in with the data loaded into your notebooks.
Week 7 : Nov 11 - Nov 17
It’s Veteran’s day. Enjoy the long weekend!
Class 13
- Covered the clipping notes.
We started from a pre-filled notebook that students transferred to their in-class coding directory via the terminal. The pre-filled notebook is in this path in workbench-1:
The general bash command to copy a file is:
So to copy the file into your current working directory use the command:
Discussion section
No work to do ahead of the discussion section.
Week 8: Nov 18 - Nov 24
Class 14
- Covered the
xarray
notes.
We started from a pre-filled notebook that students transferred into their in-class coding directory via the terminal. To copy the file into your current working directory use the command:
Class 15
- Covered the
rioxarray
notes.
We started from a pre-filled notebook that students transferred into their in-class coding directory via the terminal. To copy the file into your current working directory use the command:
Discussion section
This discussion section will be used to work on assignment 4 with your teams. Please come in with the data loaded into your notebooks.