git
?¶The most common version control system is called git
. It helps you with:
From your pre-class reading, what does each of these terms mean?
Recall the example story of work on a project from the notes, shown below. When are the best times to commit?
Warning: You will be tempted to not take commit messages seriously, and you will later wish that you had. Remember the importance of good code explanations; the same advice applies here. Write clearly and meaningfully!
Examples:
Anita and Barry are teammates on Project 1. Which of the following scenarios are correct ways to collaborate using git
? What could go wrong?
project-1.py
that cleans the data while Barry edits code near the middle of project-1.py
that filters the dataset.analysis.ipynb
while Barry creates a presentation in project-1.pptx
.hypothesis-test.py
, which contains just 10 lines of code, each making various edits to add features, fix bugs, or tweak the output.Which of the following statements are true, and why?
git
or the GitHub app.git
without using the GitHub app.Add a Python script or Jupyter notebook to your Project 1 repository.
In that script or notebook, complete steps 2--3 from the Project 1 assignment document. That is, you will end up with a function that can take as input a state name (such as "Idaho"
) and a column name from the vaccinations DataFrame (such as "people_vaccinated"
) and return a pandas Series of just that column of data, indexed by date.
We will use that function in class next time, so the work is due before class next week.
Submit your work by committing and pushing to the repository. I will be able to see it because you have already invited me to the repository as a collaborator.