Added function to expand data frame for missing dates