3.3 KiB
3.3 KiB
Setup Checklist
Use this checklist to ensure your template is properly configured before running analyses.
✅ Initial Setup
-
Install dependencies
pip install -r requirements.txt -
Run setup wizard
python setup_wizard.py -
Place data file in template directory (or update
DATA_DIRin config.py)
✅ Configuration Verification
Open config.py and verify:
-
Company Information
COMPANY_NAMEis setANALYSIS_DATEis current
-
Data File
DATA_FILEmatches your CSV filename- File exists in expected location
-
Column Mappings
REVENUE_COLUMNmatches your CSVDATE_COLUMNmatches your CSVCUSTOMER_COLUMNmatches your CSV (if applicable)ITEM_COLUMNmatches your CSV (if applicable)QUANTITY_COLUMNmatches your CSV (if applicable)
-
Date Configuration
MIN_YEARis correctMAX_DATEis correctANALYSIS_YEARSincludes all years you want to analyze
-
LTM Configuration (if needed)
LTM_ENABLEDis set correctlyLTM_START_MONTH,LTM_START_YEARare correctLTM_END_MONTH,LTM_END_YEARare correct
-
Exclusion Filters (if needed)
EXCLUSION_FILTERS['enabled']is set correctlyexclude_by_columnmatches a column in your dataexclude_valueslist is correct
✅ Data Loading Test
-
Test data loading
python -c "from data_loader import load_sales_data; from config import get_data_path; df = load_sales_data(get_data_path()); print(f'✓ Loaded {len(df):,} rows')" -
Verify date coverage
- Check output shows good date coverage (>95% recommended)
- Verify date range matches expectations
-
Verify revenue column
- Check that revenue values are numeric
- Verify no unexpected NaN values
✅ First Analysis Test
-
Copy template
cp analysis_template.py test_analysis.py -
Run test analysis
python test_analysis.py -
Verify outputs
- Chart generated successfully
- Chart saved to
charts/directory - Revenue validation passed
- No errors in console output
✅ Common Issues Check
Before running full analyses, verify:
- Column names match - All column mappings in config.py match your CSV
- Date format works - Dates are parsing correctly (check data_loader output)
- Date range is correct - MIN_YEAR and MAX_DATE include your data
- LTM is configured - If using LTM, dates are within your data range
- Exclusions work - If using exclusions, column and values are correct
✅ Ready for Production
Once all checks pass:
- Create your analyses using
analysis_template.py - Add to batch runner in
run_all_analyses.py - Run all analyses to generate complete analysis suite
🐛 Troubleshooting
If any check fails:
- Data loading issues: See
.cursor/rules/data_loading.md - Configuration issues: Review
config.pycomments - Common errors: See
.cursor/rules/common_errors.md - Pattern questions: See
.cursor/rules/analysis_patterns.md
Checklist Version: 1.0
Last Updated: January 2026