feat: 2026 Modernization - Python 3.10+, Monte Carlo, Bug Fixes#494
Merged
ranaroussi merged 1 commit intomainfrom Jan 13, 2026
Merged
feat: 2026 Modernization - Python 3.10+, Monte Carlo, Bug Fixes#494ranaroussi merged 1 commit intomainfrom
ranaroussi merged 1 commit intomainfrom
Conversation
This was referenced Jan 13, 2026
Closed
Closed
Closed
Closed
Closed
756d20b to
b33f933
Compare
## Packaging & Dependencies - Migrated from setup.py to pyproject.toml - Python 3.10+ minimum (dropped 3.8, 3.9) - pandas 2.0+, numpy 1.24+, scipy 1.11+, seaborn 0.13+, matplotlib 3.7+ ## New Features - Monte Carlo simulation module (_montecarlo.py) - Confidence intervals for returns, Sharpe, drawdown, CAGR - Bootstrap resampling with configurable simulations - Path simulation and Monte Carlo plots - Parameters table in HTML reports (issue #472) - Average drawdown line in underwater plot (issue #489) - Chrome dark mode support (issue #492) ## Bug Fixes (15+ issues resolved) - #491: HTML report with benchmark Series - #486: reports.metrics vs reports.full inconsistency - #485: Benchmark Omega always same as strategy - #484: make_index incorrect calculation - #481: NaN in EOY Returns vs Benchmark - #480: Inconsistent metrics benchmark vs return-only - #479: EOY Returns vs Benchmark section issues - #475: Double "%" in HTML report - #477: Noisy variance warning messages - #467: CVaR calculation for DataFrame inputs - Fixed timezone normalization for cross-market comparisons - Fixed FutureWarning for deprecated pandas pct_change() - Fixed parameters kwarg not being used in html reports ## Code Quality - Added comprehensive type hints to 20+ stats.py functions - Uses Python 3.10+ union syntax (X | Y) - Added py.typed marker for PEP 561 - Simplified _compat.py and _numpy_compat.py (removed obsolete checks) - README converted from RST to Markdown 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
b33f933 to
7509f0d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Major modernization release bringing QuantStats into 2026 with modern Python support, new Monte Carlo simulation features, and comprehensive bug fixes.
Breaking Changes
Dependency Updates (backwards compatible)
New Features
Bug Fixes (15+ issues resolved)
Code Quality
Test Plan
🤖 Generated with Claude Code