presData = rawPresidentData.map(d => {
return {
name: d.Name,
initials: d.Name.split(' ')
.map(d => d[0])
.join(''),
veryFav: d['Very Favorable %'],
someFav: d['Somewhat Favorable %'],
someUnfav: d['Somewhat Unfavorable %'],
veryUnfav: d['Very Unfavorable %'],
dontKnow: d['Don’t know %'],
haveNotHeard: d['Have not heard of them %'],
date: d['First Inauguration Date'],
image: d['Portrait URL']
};
})