Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions statvar_imports/bls/qcew/configs/qcew_common_metadata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
parameter,value
multi_value_properties,"observationDate, observationAbout, observationPeriod, establishmentOwnership"
header_rows,1
output_columns,"observationAbout,observationDate,variableMeasured,value,unit, observationPeriod, #input"
Comment thread
saanikaaa marked this conversation as resolved.
word_delimiter,
mapped_columns,8
#reconcile_nodes,False
#input_rows,6
20 changes: 20 additions & 0 deletions statvar_imports/bls/qcew/configs/qcew_pvmap_annual.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
key,prop,value,,,,,,,,
own_code:0,#ignore,skip,,,,,,,,
own_code:9,#ignore,skip,,,,,,,,
area_fips,#Eval,ObservationAbout=(f'country/USA' if Data == 'US000' else f'geoId/{Data}0' if Data.startswith('C') else f'geoId/{(("0" + Data) if len(Data) == 4 else Data)[:-3]}' if (("0" + Data) if len(Data) == 4 else Data).endswith('000') else f'geoId/{("0" + Data) if len(Data) == 4 else Data}')
area_fips:USCMS,#ignore,skip,,,,,,,,
area_fips:USMSA,#ignore,skip,,,,,,,,
area_fips:USNMS,#ignore,skip,,,,,,,,
industry_code,naics,NAICS/{Data},observationAbout,{ObservationAbout},,,,,,
own_code:1,establishmentOwnership,FederalGovernmentOwned,,,,,,,,
own_code:2,establishmentOwnership,StateGovernmentOwned,,,,,,,,
own_code:3,establishmentOwnership,LocalGovernmentOwned,,,,,,,,
own_code:4,establishmentOwnership,InternationalGovernmentOwned,,,,,,,,
own_code:5,establishmentOwnership,PrivatelyOwned,,,,,,,,
own_code:8,establishmentOwnership,GovernmentOwned,,,,,,,,
year,observationDate,{Number},,,,,,,,
annual_avg_estabs,measuredProperty,count,populationType,BLSEstablishment,observationPeriod,P1Y,value,{Number},
annual_avg_emplvl,measuredProperty,count,populationType,BLSWorker,observationPeriod,P1Y,value,{Number},
total_annual_wages,measuredProperty,wagesTotal,populationType,BLSWorker,observationPeriod,P1Y,establishmentOwnership,"""""",value,{Number},#Aggregate,sum,
Comment thread
saanikaaa marked this conversation as resolved.
annual_avg_wkly_wage,measuredProperty,wagesWeekly,populationType,BLSWorker,observationPeriod,P1Y,value,{Number},
avg_annual_pay,measuredProperty,wagesAnnual,populationType,BLSWorker,observationPeriod,P1Y,value,{Number},
25 changes: 25 additions & 0 deletions statvar_imports/bls/qcew/configs/qcew_pvmap_quarter.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
key,prop,value,,,,,,,,
own_code:0,#ignore,skip,,,,,,,,
own_code:9,#ignore,skip,,,,,,,,
area_fips,#Eval,ObservationAbout=(f'country/USA' if Data == 'US000' else f'geoId/{Data}0' if Data.startswith('C') else f'geoId/{(("0" + Data) if len(Data) == 4 else Data)[:-3]}' if (("0" + Data) if len(Data) == 4 else Data).endswith('000') else f'geoId/{("0" + Data) if len(Data) == 4 else Data}')
area_fips:USCMS,#ignore,skip,,,,,,,,
area_fips:USMSA,#ignore,skip,,,,,,,,
area_fips:USNMS,#ignore,skip,,,,,,,,
industry_code,naics,NAICS/{Data},observationAbout,{ObservationAbout},,,,,,
own_code:1,establishmentOwnership,FederalGovernmentOwned,,,,,,,,
own_code:2,establishmentOwnership,StateGovernmentOwned,,,,,,,,
own_code:3,establishmentOwnership,LocalGovernmentOwned,,,,,,,,
own_code:4,establishmentOwnership,InternationalGovernmentOwned,,,,,,,,
own_code:5,establishmentOwnership,PrivatelyOwned,,,,,,,,
own_code:8,establishmentOwnership,GovernmentOwned,,,,,,,,
year,Year,{Number},,,,,,,,,,
qtr:1,Qmonth,03,,,,,,,,,
qtr:2,Qmonth,06,,,,,,,,,
qtr:3,Qmonth,09,,,,,,,,,
qtr:4,Qmonth,12,,,,,,,,,
qtrly_estabs,observationPeriod,P3M,measuredProperty,count,populationType,BLSEstablishment,establishmentOwnership,"""""",value,{Number},#Aggregate,sum,observationDate,{Year}-{Qmonth},observationAbout,{ObservationAbout},
total_qtrly_wages,observationPeriod,P3M,measuredProperty,wagesTotal,populationType,BLSWorker,establishmentOwnership,"""""",value,{Number},#Aggregate,sum,observationDate,{Year}-{Qmonth},observationAbout,{ObservationAbout},
Comment thread
saanikaaa marked this conversation as resolved.
avg_wkly_wage,observationPeriod,P3M,measuredProperty,wagesWeekly,populationType,BLSWorker,value,{Number},observationDate,{Year}-{Qmonth},observationAbout,{ObservationAbout},
month1_emplvl,observationPeriod,P1M,measuredProperty,count,populationType,BLSWorker,#Eval,MonthQ1=int(Qmonth)-2,observationDate,{Year}-{MonthQ1},establishmentOwnership,"""""",value,{Number},#Aggregate,sum,observationAbout,{ObservationAbout},
month2_emplvl,observationPeriod,P1M,measuredProperty,count,populationType,BLSWorker,#Eval,MonthQ2=int(Qmonth)-1,observationDate,{Year}-{MonthQ2},establishmentOwnership,"""""",value,{Number},#Aggregate,sum,observationAbout,{ObservationAbout},
month3_emplvl,observationPeriod,P1M,measuredProperty,count,populationType,BLSWorker,establishmentOwnership,"""""",value,{Number},#Aggregate,sum,observationDate,{Year}-{Qmonth},,
Comment thread
saanikaaa marked this conversation as resolved.
Loading
Loading