change the errors in the top contributions
This MR fixes a KeyError: 'total_contributions' in the Contribution Mapping module.
The error occurred when executing df_results.nlargest(3, "total_contributions") because the total_contributions column was missing in the DataFrame at runtime, which caused the application to crash.
This fix ensures the column is properly created before use, verifies the column name (case-sensitive), and adds validation to prevent runtime failures while keeping existing contribution logic unchanged.
Screenshots ** Before ** After Application crashed with KeyError: 'total_contributions' Top Contributions loads successfully without errors How to set up and validate locally
Start the application.
Open Contribution Mapping.
Select a valid date range.
Verify that the Top Contributions section loads without errors.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist .
Ensure no KeyError occurs and existing functionality remains stable.