Julia code for importing and transforming time-series data