accessToTechnologyAllAges = d3.csvParse( await FileAttachment("access_to_tech.csv").text()).map(d => ({
...d,
age: +d.age,
gender: getGender(d.gender),
state: states[d.state],
sector: sectors[d.sector],
zone: zones[d.zone],
hasAccessToPhone: toBoolean(d.hasAccessToPhone),
phoneAccessModeRaw: d.phoneAccessMode,
phoneAccessMode: mapPhoneAccessMode(d.phoneAccessMode),
hasAccessToInternet: toBoolean(d.hasAccessToInternet),
personalDevice: toBoolean(d.personalDevice),
otherHousehold: toBoolean(d.otherHousehold),
relativeOrFriend: toBoolean(d.relativeOrFriend),
workplace: toBoolean(d.workplace),
cyberCafe: toBoolean(d.cyberCafe),
publicWifi: toBoolean(d.publicWifi),
other: toBoolean(d.other),
accessMode: mapInternetAccessMode(d)
}))