up data analysis code