Lab 03
2025-07-09
Goal
In today’s Lab session, we will:
- Continue working on Github collaboration.
- Clean the survery responses.
- Design the group website.
I. Github Collaboration
- Go to https://github.com/wonjun-seo/cosmos-data-analysis.
- Follow the instructions in Git Exercise.
II. Cleaning the Survey Responses
- You can export the responses from your Google From as a CSV file.
- One person from each group uploads the CSV file to
data/rawdirectory in the group’s data analysis Github repository (mainbranch). - Each member opens VS Code and open your group’s data analysis directory.
- Pull the
mainbranch. - Each member creates a notebook named
data_cleaning_yourname.ipynbinside thenotebooksfolder and works on cleaning the data individually. Do not use Git during this step (no commit or push) - After individual work is done, choose one member’s computer to create the final version:
- Create
data_cleaning.ipynbin thenotebooksfolder. - Discuss and finalize the notebook together.
- Save the cleaned dataset in the
data/cleanedfolder. - Create a new branch
cleaning - Stage and commit
data_cleaning.ipynband the cleaned CSV file. (Do not stagedata_cleaning_yourname.ipynbfile) - Push the branch and create a pull request.
- Create
- Other members review the pull request.
- Once approved, merge the branch and each member will pull the
mainbranch so that everyone has the updated files.
After pooling, compare data_cleaning.ipynb with your own data_cleaning_yourname.ipynb to see how your approach aligns with the group version.
III. Design the Group Website
Although it’s not the usual practice, for simplicity we will use the main branch exclusively to maintain your group website. Important: To avoid conflicts, make sure only one person edits and pushes changes at a time.
Update README.md file!
Update the Home Profile Photo
- Upload a new photo to the
staticfolder. - In
hugo.yamlfile, update theparams: imageUrlfield to point to the new photo.
Change the Website Title and Home Description
- Open
hugo.yamlfile. - Modify the following fields:
titleprofileMode: titleprofileMode: subtitle
Add a New Tab to Your Website:
- In
hugo.yaml, add a new item to themenu: mainfield. - In the
contentfolder, create a new folder with an_index.mdfile inside. The folder name should match with the url in themenu:main.
Make It Yours!
This website belongs to your group. Feel free to customize it! Here are some ideas for content you can add:
- Journal: Write daily reflections or logs.
- Activity: Share night activities or field trip stories.
- Photos: Upload and display group photos.
Discuss with your team how you want to organize your website! If you plan to include a journal section, we recommend taking turns to write entries each day so that everyone contributes and the content stays up to date.
Tips
-
If you want to include a table in your Markdown, I highly recommend you use this link.
- If you want to create a Markdown table from Python, follow these steps:
- Open your VS code.
- Open a new terminal.
- On the terminal, activate
cosmosenvironment:conda cosmos activate. - On the terminal, type
conda install tabulateand proceed installation. (After installation, you don’t have to repeat this anymore. Start from v.) - On the
ipynbfile, create a data frame that you want to make it to a Markdown table. Let’s say its variable name isdf. - On the
ipynbfile, runprint(df.to_markdown()). Changedfto your data frame variable. - Use the printed output.
- More tips to come!
