Handle missing values in historical data