def __init__(self, df): new = df['agree_new'] newNational = df['agree_new_national'] newInternational = df['agree_new_international'] vaccine = df['agree_vaccine'] self.avgs.append(basic_func.indexAvg(new)) self.avgs.append(basic_func.indexAvg(newNational)) self.avgs.append(basic_func.indexAvg(newInternational)) self.avgs.append(basic_func.indexAvg(vaccine))
def __init__(self, df): selfProtect = df['agree_mask_self-protect'] safePublicWithMask = df['agree_mask_safe_public-with-mask'] safePublicNoMask = df['agree_mask_safe_public-no-mask'] publicNoMaskAfterVaccine = df[ 'agree_mask_public-no-mask-after-vaccine'] self.avgs.append(basic_func.indexAvg(selfProtect)) self.avgs.append(basic_func.indexAvg(safePublicWithMask)) self.avgs.append(basic_func.indexAvg(safePublicNoMask)) self.avgs.append(basic_func.indexAvg(publicNoMaskAfterVaccine))
def __init__(self, df): decline = df['agree_public-eff_decline'] noStop = df['agree_public-eff_no-stop'] limit = df['agree_public-eff_limit-people'] sign = df['agree_public-eff_sign'] disinfect = df['agree_public-eff_disinfect'] check = df['agree_public-eff_driver-check'] mask = df['agree_public-eff_mask'] qr = df['agree_public-eff_qr'] temp = df['agree_public-eff_temp'] track = df['agree_public-eff_track'] self.avgs.append(basic_func.indexAvg(decline)) self.avgs.append(basic_func.indexAvg(noStop)) self.avgs.append(basic_func.indexAvg(limit)) self.avgs.append(basic_func.indexAvg(sign)) self.avgs.append(basic_func.indexAvg(disinfect)) self.avgs.append(basic_func.indexAvg(check)) self.avgs.append(basic_func.indexAvg(mask)) self.avgs.append(basic_func.indexAvg(qr)) self.avgs.append(basic_func.indexAvg(temp)) self.avgs.append(basic_func.indexAvg(track))
def __init__(self, df): convience = df['agree_reason_convience'] time = df['agree_reason_time'] crowd = df['agree_reason_crowd'] price = df['agree_reason_price'] friend = df['agree_reeason_friend'] export = df['agree_reason_export'] others = df['agree_reason_others'] self.avgs.append(basic_func.indexAvg(convience)) self.avgs.append(basic_func.indexAvg(time)) self.avgs.append(basic_func.indexAvg(crowd)) self.avgs.append(basic_func.indexAvg(price)) self.avgs.append(basic_func.indexAvg(friend)) self.avgs.append(basic_func.indexAvg(export)) self.avgs.append(basic_func.indexAvg(others))
def __init__(self, df): decline = df['agree_public_decline'] noStop = df['agree_public_no-stop'] limit = df['agree_public_limit-people'] sign = df['agree_public_sign'] disinfect = df['agree_public_disinfect'] check = df['agree_public_driver-check'] mask = df['agree_public_mask'] qr = df['agree_public_qr'] temp = df['agree_public_temp'] track = df['agree_public_track'] time = df['agree_public_multiple-time'] custom = df['agree_public_custom'] special = df['agree_public_special'] self.avgs.append(basic_func.indexAvg(decline)) self.avgs.append(basic_func.indexAvg(noStop)) self.avgs.append(basic_func.indexAvg(limit)) self.avgs.append(basic_func.indexAvg(sign)) self.avgs.append(basic_func.indexAvg(disinfect)) self.avgs.append(basic_func.indexAvg(check)) self.avgs.append(basic_func.indexAvg(mask)) self.avgs.append(basic_func.indexAvg(qr)) self.avgs.append(basic_func.indexAvg(temp)) self.avgs.append(basic_func.indexAvg(track)) self.avgs.append(basic_func.indexAvg(time)) self.avgs.append(basic_func.indexAvg(custom)) self.avgs.append(basic_func.indexAvg(special))