# COMP90024 Team 4 Group Assignment, Melbourne
# Hongxiang Yang: 674136 hongxiangy@student.unimelb.edu.au
# Jiaming Wu: 815465 jiamingw@student.unimelb.edu.au
# Qingyang Li: 899636 qingyangl4@student.unimelb.edu.au
# Xueyao Chen: 851312 xueyaoc@student.unimelb.edu.au
import json
import sys
import os
import csv
FILTER_NUM=100 #number of twitters at least in one suburb
def main():
    #input_twt_file_name="mel_postcode_list.json"
    input_abs_file_name="data/pre_2016Census_G19_VIC_SSC.csv"
    output_file_name="result/ABS_mel_volunteer.json"
    #twt_data = json.load(open(input_twt_file_name,'rb'))
    mel_data=[]
    with open(input_abs_file_name, 'rb') as csvfile:
        vic_data = csv.reader(csvfile)
        list_vic_data = list(vic_data)
        for row in list_vic_data:
            if "CODE" not in row[0]:
                #row[0]=row[0].replace("SSC","")
                row[3]="%.4f" % float(row[3])
                mel_data+=[{"SSC":row[0],"volunteer_percentage":row[3]}]
    with open(output_file_name, 'w') as fp:
        json.dump(mel_data, fp)
if __name__ == "__main__":
    main()

#postcode:str,volunteer_percentagge:str

9f3adba5201f411a4c1fc2ecee62a2990c6f1de4
<mask token>

<mask token>


def main():
    input_abs_file_name = 'data/pre_2016Census_G19_VIC_SSC.csv'
    output_file_name = 'result/ABS_mel_volunteer.json'
    mel_data = []
    with open(input_abs_file_name, 'rb') as csvfile:
        vic_data = csv.reader(csvfile)
        list_vic_data = list(vic_data)
        for row in list_vic_data:
            if 'CODE' not in row[0]:
                row[3] = '%.4f' % float(row[3])
                mel_data += [{'SSC': row[0], 'volunteer_percentage': row[3]}]
    with open(output_file_name, 'w') as fp:
        json.dump(mel_data, fp)


if __name__ == '__main__':
    main()

<mask token>
FILTER_NUM = 100


def main():
    input_abs_file_name = 'data/pre_2016Census_G19_VIC_SSC.csv'
    output_file_name = 'result/ABS_mel_volunteer.json'
    mel_data = []
    with open(input_abs_file_name, 'rb') as csvfile:
        vic_data = csv.reader(csvfile)
        list_vic_data = list(vic_data)
        for row in list_vic_data:
            if 'CODE' not in row[0]:
                row[3] = '%.4f' % float(row[3])
                mel_data += [{'SSC': row[0], 'volunteer_percentage': row[3]}]
    with open(output_file_name, 'w') as fp:
        json.dump(mel_data, fp)


if __name__ == '__main__':
    main()

import json
import sys
import os
import csv
FILTER_NUM = 100


def main():
    input_abs_file_name = 'data/pre_2016Census_G19_VIC_SSC.csv'
    output_file_name = 'result/ABS_mel_volunteer.json'
    mel_data = []
    with open(input_abs_file_name, 'rb') as csvfile:
        vic_data = csv.reader(csvfile)
        list_vic_data = list(vic_data)
        for row in list_vic_data:
            if 'CODE' not in row[0]:
                row[3] = '%.4f' % float(row[3])
                mel_data += [{'SSC': row[0], 'volunteer_percentage': row[3]}]
    with open(output_file_name, 'w') as fp:
        json.dump(mel_data, fp)


if __name__ == '__main__':
    main()

# COMP90024 Team 4 Group Assignment, Melbourne
# Hongxiang Yang: 674136 hongxiangy@student.unimelb.edu.au
# Jiaming Wu: 815465 jiamingw@student.unimelb.edu.au
# Qingyang Li: 899636 qingyangl4@student.unimelb.edu.au
# Xueyao Chen: 851312 xueyaoc@student.unimelb.edu.au
import json
import sys
import os
import csv
FILTER_NUM=100 #number of twitters at least in one suburb
def main():
    #input_twt_file_name="mel_postcode_list.json"
    input_abs_file_name="data/pre_2016Census_G19_VIC_SSC.csv"
    output_file_name="result/ABS_mel_volunteer.json"
    #twt_data = json.load(open(input_twt_file_name,'rb'))
    mel_data=[]
    with open(input_abs_file_name, 'rb') as csvfile:
        vic_data = csv.reader(csvfile)
        list_vic_data = list(vic_data)
        for row in list_vic_data:
            if "CODE" not in row[0]:
                #row[0]=row[0].replace("SSC","")
                row[3]="%.4f" % float(row[3])
                mel_data+=[{"SSC":row[0],"volunteer_percentage":row[3]}]
    with open(output_file_name, 'w') as fp:
        json.dump(mel_data, fp)
if __name__ == "__main__":
    main()

#postcode:str,volunteer_percentagge:str
