Skip to content

cambridge-FDS/solution_ps1_optional_ex_data_wrangling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PS1_optional_ex

This is the solution to PS 1 optional exercise.

Objective

Reconstruct the simulated data frame from Lecture 2, then perform the necessary data wrangling to transform the individual-level data frame into a household-level data frame.

Household Level.png

Tasks

  1. Recreate the initial data frame as shown in the provided screenshot. Use simulated data to generate a new data frame containing the specified information.
  2. Develop functions to derive the features displayed in the household-level data frame (the second screenshot).
  3. Adhere to Git and GitHub workflow practices:
    • Create a separate branch for each new function
    • Submit a Pull Request (PR) for each function
    • Merge the PR into the main branch upon completion
  4. You may complete this assignment individually or in teams.

Guidelines:

  1. Utilise Git and GitHub
  2. Implement a modular code structure to enhance maintainability:
    • Create functions within separate modules
    • Import these functions into your main orchestration script
      • Use the imported functions to execute the steps "create_simulated_data()" and "generate_household_level_data()" (you are free to come up with better naming)

Reflection Question

Question: What are some potential use cases for generating simulated data?

About

This is the solution to PS 1 optional exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages