Correct headers for 4D so the data can be correctly imported

pull/1/head
rebuilt 3 years ago
parent 9b28b0e629
commit f4e2e6ca83

@ -32,8 +32,8 @@ module Dese
def write_headers(filepath:) def write_headers(filepath:)
CSV.open(filepath, 'w') do |csv| CSV.open(filepath, 'w') do |csv|
headers = ['School Name', 'DESE ID', '4 Year Private College', '4 Year Public College', '2 Year Private College', '2 Year Public College', headers = ['Raw likert calculation', 'Likert Score', 'Admin Data Item', 'Academic Year','School Name', 'DESE ID', '4 Year Private College', '4 Year Public College', '2 Year Private College', '2 Year Public College',
'Other Post Secondary', 'Apprenticeship', 'Work', 'Military', 'Other', 'Unknown', 'Total', 'Raw likert calculation', 'Likert Score', 'Admin Data Item', 'Academic Year'] 'Other Post Secondary', 'Apprenticeship', 'Work', 'Military', 'Other', 'Unknown', 'Total']
csv << headers csv << headers
end end
end end

@ -1,4 +1,4 @@
School Name,DESE ID,4 Year Private College,4 Year Public College,2 Year Private College,2 Year Public College,Other Post Secondary,Apprenticeship,Work,Military,Other,Unknown,Total,Raw likert calculation,Likert Score,Admin Data Item,Academic Year Raw likert calculation,Likert Score,Admin Data Item,Academic Year,School Name,DESE ID,4 Year Private College,4 Year Public College,2 Year Private College,2 Year Public College,Other Post Secondary,Apprenticeship,Work,Military,Other,Unknown,Total
5.077333333333334,5,a-cgpr-i1,2020-21,Abby Kelley Foster Charter Public (District) - Abby Kelley Foster Charter Public School,04450105, 24.4, 54.9, 0.0, 12.2, 0.0, 0.0, 3.7, 0.0, 4.9, 0.0, 82 5.077333333333334,5,a-cgpr-i1,2020-21,Abby Kelley Foster Charter Public (District) - Abby Kelley Foster Charter Public School,04450105, 24.4, 54.9, 0.0, 12.2, 0.0, 0.0, 3.7, 0.0, 4.9, 0.0, 82
4.08,4.08,a-cgpr-i1,2020-21,Abington - Abington High,00010505, 27.5, 28.9, 0.0, 18.1, 0.0, 2.0, 0.0, 2.7, 14.8, 6.0, 149 4.08,4.08,a-cgpr-i1,2020-21,Abington - Abington High,00010505, 27.5, 28.9, 0.0, 18.1, 0.0, 2.0, 0.0, 2.7, 14.8, 6.0, 149
5.237333333333333,5,a-cgpr-i1,2020-21,Academy Of the Pacific Rim Charter Public (District) - Academy Of the Pacific Rim Charter Public School,04120530, 21.4, 51.8, 3.6, 10.7, 10.7, 0.0, 0.0, 0.0, 0.0, 1.8, 56 5.237333333333333,5,a-cgpr-i1,2020-21,Academy Of the Pacific Rim Charter Public (District) - Academy Of the Pacific Rim Charter Public School,04120530, 21.4, 51.8, 3.6, 10.7, 10.7, 0.0, 0.0, 0.0, 0.0, 1.8, 56

1 Raw likert calculation Likert Score Admin Data Item Academic Year School Name DESE ID 4 Year Private College 4 Year Public College 2 Year Private College 2 Year Public College Other Post Secondary Apprenticeship Work Military Other Unknown Total
2 0.0 5.077333333333334 4.9 5 0.0 a-cgpr-i1 82 2020-21 5.077333333333334 Abby Kelley Foster Charter Public (District) - Abby Kelley Foster Charter Public School 5 04450105 a-cgpr-i1 24.4 2020-21 54.9 Abby Kelley Foster Charter Public (District) - Abby Kelley Foster Charter Public School 0.0 04450105 12.2 24.4 0.0 54.9 0.0 0.0 3.7 12.2 0.0 0.0 4.9 0.0 3.7 82
3 2.7 4.08 14.8 4.08 6.0 a-cgpr-i1 149 2020-21 4.08 Abington - Abington High 4.08 00010505 a-cgpr-i1 27.5 2020-21 28.9 Abington - Abington High 0.0 00010505 18.1 27.5 0.0 28.9 2.0 0.0 18.1 2.7 0.0 14.8 2.0 6.0 0.0 149
4 0.0 5.237333333333333 0.0 5 1.8 a-cgpr-i1 56 2020-21 5.237333333333333 Academy Of the Pacific Rim Charter Public (District) - Academy Of the Pacific Rim Charter Public School 5 04120530 a-cgpr-i1 21.4 2020-21 51.8 Academy Of the Pacific Rim Charter Public (District) - Academy Of the Pacific Rim Charter Public School 3.6 04120530 10.7 21.4 10.7 51.8 0.0 3.6 0.0 10.7 0.0 10.7 0.0 0.0 1.8 0.0 56
Loading…
Cancel
Save