Refactor calculate_results to use pandas DataFrames
- Complete rewrite of data processing pipeline using pandas - Single source of truth: main DataFrame with all predictions and actuals - Vectorized calculations for all financial metrics - Clean separation: data collection → transformation → aggregation - Eliminated nested loops and manual accumulation - Much more maintainable and easier to debug - Includes DataFrame in results for future enhancements
Loading
Please sign in to comment