-
Notifications
You must be signed in to change notification settings - Fork 132
PR to bring configs for MOSPI_IndiaPLFS_MonthlyWages and MOSPI_IndiaPLFS_DailyWages #1851
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b3a4b82
PR to bring configs
saanikaaa 02cb315
Test data added
saanikaaa 6dcad8c
Merge branch 'datacommonsorg:master' into plfs_wages_pr
saanikaaa d8331f5
Merge branch 'datacommonsorg:master' into plfs_wages_pr
saanikaaa 09cdc63
PR Checklist
saanikaaa 0bdab3f
Merge branch 'datacommonsorg:master' into plfs_wages_pr
saanikaaa 1850390
Core review
saanikaaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ### MOSPI_IndiaPLFS_DailyWages | ||
|
|
||
| - Description: Daily wages at the country and state level. | ||
|
|
||
| - Source URL: https://esankhyiki.mospi.gov.in/macroindicators?product=plf | ||
|
|
||
| - Import Type: Manual Refresh | ||
|
|
||
| - Data Availability: 2017-05 to 2024-02 | ||
|
|
||
| - Release Frequency: P3Y | ||
|
|
||
| ### Preprocessing and Data Acquisition | ||
|
|
||
| To download the raw input files: | ||
| - Use the link to download the data. Select "Average wage earnings (Rs. 0.00) per day from casual labour work other than public works". Selected all years, gender, quarter, sector and state. | ||
|
|
||
| ### Data Processing | ||
|
|
||
| After the files are downloaded, the data is processed using the stat_var_processor.py script. Each stage handles a specific data category. The script uses various command-line arguments to specify the input data, pvmap, configuration file, and output path for each category. | ||
|
|
||
| ```bash | ||
|
|
||
| python3 stat_var_processor.py --existing_statvar_mcf=gs://unresolved_mcf/scripts/statvar/stat_vars.mcf --input_data='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/{InputFile}.csv' --pv_map='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/daily_wages_pvmap.csv' --config_file='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/daily_wages_metadata.csv' --output_path='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/output/daily_wages' --places_resolved_csv='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/daily_wages_places.csv' | ||
| ``` | ||
3 changes: 3 additions & 0 deletions
3
statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/daily_wages_metadata.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| parameter,value | ||
| header_rows,1 | ||
| output_columns,"observationDate,observationAbout,variableMeasured,value,unit,measurementMethod,observationPeriod" |
40 changes: 40 additions & 0 deletions
40
statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/daily_wages_places.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| place_name,dcid | ||
| All India,country/IND | ||
| Andaman & Nicobar Islands,wikidataId/Q40888 | ||
| Andhra Pradesh,wikidataId/Q1159 | ||
| Arunachal Pradesh,wikidataId/Q1162 | ||
| Assam,wikidataId/Q1164 | ||
| Bihar,wikidataId/Q1165 | ||
| Chandigarh,wikidataId/Q120971341 | ||
| Chhattisgarh,wikidataId/Q1168 | ||
| Dadra & Nagar Haveli,wikidataId/Q77997266 | ||
saanikaaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Daman & Diu,wikidataId/Q66710 | ||
| Delhi,wikidataId/Q9357528 | ||
| Goa,wikidataId/Q1171 | ||
| Gujarat,wikidataId/Q1061 | ||
| Haryana,wikidataId/Q1174 | ||
| Himachal Pradesh,wikidataId/Q1177 | ||
| Jammu & Kashmir,wikidataId/Q66278313 | ||
| Jharkhand,wikidataId/Q1184 | ||
| Karnataka,wikidataId/Q1185 | ||
| Kerala,wikidataId/Q1186 | ||
| Lakshadweep,wikidataId/Q26927 | ||
| Madhya Pradesh,wikidataId/Q1188 | ||
| Maharashtra,wikidataId/Q1191 | ||
| Manipur,wikidataId/Q1193 | ||
| Meghalaya,wikidataId/Q1195 | ||
| Mizoram,wikidataId/Q1502 | ||
| Nagaland,wikidataId/Q1599 | ||
| Odisha,wikidataId/Q22048 | ||
| Puducherry,wikidataId/Q66743 | ||
| Punjab,wikidataId/Q22424 | ||
| Rajasthan,wikidataId/Q1437 | ||
| Sikkim,wikidataId/Q1505 | ||
| Tamil Nadu,wikidataId/Q1445 | ||
| Telangana,wikidataId/Q677037 | ||
| Tripura,wikidataId/Q1363 | ||
| Uttarakhand,wikidataId/Q1499 | ||
| Uttar Pradesh,wikidataId/Q1498 | ||
| West Bengal,wikidataId/Q1356 | ||
| Ladakh,wikidataId/Q200667 | ||
| Dadra & Nagar Haveli & Daman & Diu,wikidataId/Q77997266 | ||
28 changes: 28 additions & 0 deletions
28
statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/daily_wages_pvmap.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| key,prop,value,,,,,, | ||
| 2017-18,Year,2018,,,,,, | ||
| 2018-19,Year,2019,,,,,, | ||
| 2019-20,Year,2020,,,,,, | ||
| 2020-21,Year,2021,,,,,, | ||
| 2021-22,Year,2022,,,,,, | ||
| 2022-23,Year,2023,,,,,, | ||
| 2023-24,Year,2024,,,,,, | ||
saanikaaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 2024-25,Year,2025,,,,,, | ||
| 2025-26,Year,2026,,,,,, | ||
| 2026-27,Year,2027,,,,,, | ||
| 2027-28,Year,2028,,,,,, | ||
| 2028-29,Year,2029,,,,,, | ||
| 2029-30,Year,2030,,,,,, | ||
| indicator,measuredProperty,wagesDaily,populationType,Person,statType,meanValue,occupation,WorkerOtherThanPublicWorker | ||
| male,gender,Male,,,,,, | ||
| female,gender,Female,,,,,, | ||
| person,gender,"""""",,,,,, | ||
| rural + urban,placeOfResidenceClassification,"""""",,,,,, | ||
| rural,placeOfResidenceClassification,Rural,,,,,, | ||
| urban,placeOfResidenceClassification,Urban,,,,,, | ||
| APR-JUN,Month1,5,observationPeriod,P3M,#Eval,Year1=int(Year)-1,observationDate,{Year1}-{Month1} | ||
| OCT-DEC,Month2,11,observationPeriod,P3M,#Eval,Year1=int(Year)-1,observationDate,{Year1}-{Month2} | ||
| JUL-SEP,Month3,8,observationPeriod,P3M,#Eval,Year1=int(Year)-1,observationDate,{Year1}-{Month3} | ||
| JAN-MAR,Month4,2,observationPeriod,P3M,observationDate,{Year}-{Month4},, | ||
| value,value,{Number},,,,,, | ||
| unit,unit,INR,,,,,, | ||
| state,observationAbout,{Data},,,,,, | ||
1,333 changes: 1,333 additions & 0 deletions
1,333
...ports/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/test_data/daily_wages_input.csv
Large diffs are not rendered by default.
Oops, something went wrong.
1,333 changes: 1,333 additions & 0 deletions
1,333
...orts/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/test_data/daily_wages_output.csv
Large diffs are not rendered by default.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...rts/india_mospi/plfs_wages/mospi_india_plfs_daily_wages/test_data/daily_wages_output.tmcf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| Node: E:daily_wages_output->E0 | ||
| observationDate: C:daily_wages_output->observationDate | ||
| observationAbout: C:daily_wages_output->observationAbout | ||
| variableMeasured: C:daily_wages_output->variableMeasured | ||
| value: C:daily_wages_output->value | ||
| unit: C:daily_wages_output->unit | ||
| measurementMethod: C:daily_wages_output->measurementMethod | ||
| observationPeriod: C:daily_wages_output->observationPeriod | ||
| typeOf: dcs:StatVarObservation |
25 changes: 25 additions & 0 deletions
25
statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ### MOSPI_IndiaPLFS_MonthlyWages | ||
|
|
||
| - Description: Monthly wages at the country and state level. | ||
|
|
||
| - Source URL: https://esankhyiki.mospi.gov.in/macroindicators?product=plf | ||
|
|
||
| - Import Type: Manual Refresh | ||
|
|
||
| - Data Availability: 2017-05 to 2024-02 | ||
|
|
||
| - Release Frequency: P3Y | ||
|
|
||
| ### Preprocessing and Data Acquisition | ||
|
|
||
| To download the raw input files: | ||
| - Use the link to download the data. Select "Average wage/salary earnings (Rs. 0.00) during the preceding calendar month from regular wage/salaried employment". Selected all years, gender, quarter, sector and state. | ||
|
|
||
| ### Data Processing | ||
|
|
||
| After the files are downloaded, the data is processed using the stat_var_processor.py script. Each stage handles a specific data category. The script uses various command-line arguments to specify the input data, pvmap, configuration file, and output path for each category. | ||
|
|
||
| ```bash | ||
|
|
||
| python3 stat_var_processor.py --existing_statvar_mcf=gs://unresolved_mcf/scripts/statvar/stat_vars.mcf --input_data='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/{InputFile}.csv' --pv_map='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/monthly_wages_pvmap.csv' --config_file='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/monthly_wages_metadata.csv' --output_path='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/output/monthly_wages' --places_resolved_csv='../../statvar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/monthly_wages_places.csv' | ||
| ``` |
3 changes: 3 additions & 0 deletions
3
..._imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/monthly_wages_metadata.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| parameter,value | ||
| header_rows,1 | ||
| output_columns,"observationDate,observationAbout,variableMeasured,value,unit,measurementMethod,observationPeriod" |
40 changes: 40 additions & 0 deletions
40
...ar_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/monthly_wages_places.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| place_name,dcid | ||
| All India,country/IND | ||
| Andaman & Nicobar Islands,wikidataId/Q40888 | ||
| Andhra Pradesh,wikidataId/Q1159 | ||
| Arunachal Pradesh,wikidataId/Q1162 | ||
| Assam,wikidataId/Q1164 | ||
| Bihar,wikidataId/Q1165 | ||
| Chandigarh,wikidataId/Q120971341 | ||
| Chhattisgarh,wikidataId/Q1168 | ||
| Dadra & Nagar Haveli,wikidataId/Q77997266 | ||
saanikaaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Daman & Diu,wikidataId/Q66710 | ||
| Delhi,wikidataId/Q9357528 | ||
| Goa,wikidataId/Q1171 | ||
| Gujarat,wikidataId/Q1061 | ||
| Haryana,wikidataId/Q1174 | ||
| Himachal Pradesh,wikidataId/Q1177 | ||
| Jammu & Kashmir,wikidataId/Q66278313 | ||
| Jharkhand,wikidataId/Q1184 | ||
| Karnataka,wikidataId/Q1185 | ||
| Kerala,wikidataId/Q1186 | ||
| Lakshadweep,wikidataId/Q26927 | ||
| Madhya Pradesh,wikidataId/Q1188 | ||
| Maharashtra,wikidataId/Q1191 | ||
| Manipur,wikidataId/Q1193 | ||
| Meghalaya,wikidataId/Q1195 | ||
| Mizoram,wikidataId/Q1502 | ||
| Nagaland,wikidataId/Q1599 | ||
| Odisha,wikidataId/Q22048 | ||
| Puducherry,wikidataId/Q66743 | ||
| Punjab,wikidataId/Q22424 | ||
| Rajasthan,wikidataId/Q1437 | ||
| Sikkim,wikidataId/Q1505 | ||
| Tamil Nadu,wikidataId/Q1445 | ||
| Telangana,wikidataId/Q677037 | ||
| Tripura,wikidataId/Q1363 | ||
| Uttarakhand,wikidataId/Q1499 | ||
| Uttar Pradesh,wikidataId/Q1498 | ||
| West Bengal,wikidataId/Q1356 | ||
| Ladakh,wikidataId/Q200667 | ||
| Dadra & Nagar Haveli & Daman & Diu,wikidataId/Q77997266 | ||
28 changes: 28 additions & 0 deletions
28
...var_imports/india_mospi/plfs_wages/mospi_india_plfs_monthly_wages/monthly_wages_pvmap.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| key,prop,value,,,,,, | ||
| 2017-18,Year,2018,,,,,, | ||
| 2018-19,Year,2019,,,,,, | ||
| 2019-20,Year,2020,,,,,, | ||
| 2020-21,Year,2021,,,,,, | ||
| 2021-22,Year,2022,,,,,, | ||
| 2022-23,Year,2023,,,,,, | ||
| 2023-24,Year,2024,,,,,, | ||
saanikaaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 2024-25,Year,2025,,,,,, | ||
| 2025-26,Year,2026,,,,,, | ||
| 2026-27,Year,2027,,,,,, | ||
| 2027-28,Year,2028,,,,,, | ||
| 2028-29,Year,2029,,,,,, | ||
| 2029-30,Year,2030,,,,,, | ||
| indicator,measuredProperty,wagesMonthly,populationType,Person,statType,meanValue,, | ||
| male,gender,Male,,,,,, | ||
| female,gender,Female,,,,,, | ||
| person,gender,"""""",,,,,, | ||
| rural + urban,placeOfResidenceClassification,"""""",,,,,, | ||
| rural,placeOfResidenceClassification,Rural,,,,,, | ||
| urban,placeOfResidenceClassification,Urban,,,,,, | ||
| APR-JUN,Month1,5,observationPeriod,P3M,#Eval,Year1=int(Year)-1,observationDate,{Year1}-{Month1} | ||
| OCT-DEC,Month2,11,observationPeriod,P3M,#Eval,Year1=int(Year)-1,observationDate,{Year1}-{Month2} | ||
| JUL-SEP,Month3,8,observationPeriod,P3M,#Eval,Year1=int(Year)-1,observationDate,{Year1}-{Month3} | ||
| JAN-MAR,Month4,2,observationPeriod,P3M,observationDate,{Year}-{Month4},, | ||
| value,value,{Number},,,,,, | ||
| unit,unit,INR,,,,,, | ||
| state,observationAbout,{Data},,,,,, | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.