Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OECD Refresh and Automation #1125

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion scripts/oecd/regional_demography/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,32 @@ In each subdirectory, the StatVarObservation template MCF files are saved as `OE

### Script

The script file `preprocess_csv.py` in each subdirectory is used to generate cleaned CSV and template MCF files.
The script file `preprocess_csv.py` in each subdirectory is used to download, process and generate cleaned CSV and template MCF files.

## Generating Artifacts

To generate the cleaned csv and template MCF files, run

- To download the input file of the particular file run-
```bash
python3 preprocess_csv.py --mode=download
```

- To process the input file of the particular file run-
```bash
python3 preprocess_csv.py --mode=process
```

- To download and process the input file of the particular file run-
```bash
python3 preprocess_csv.py
```

- To run the test scripts
```bash
python3 -m unittest process_csv_test.py
```

For population, following the Raw Data section, first copy its raw data to population direction.
Then run the same preprocess_csv command, it will generate artifacts as well as cleaned CSV.

Expand Down
Loading
Loading