data munging for "Where do PhDs come from?" visualization