Pyfolio vs QuantStats vs Alphalens: Which Tear Sheet to Use in 2026

Three Python packages keep appearing in backtest write-ups as tear-sheet tools: pyfolio-reloaded, QuantStats, and alphalens-reloaded. They share a visual style and a few overlapping statistics, but they answer different questions and sit at different points in their maintenance lifecycles. This guide maps each tool to its question, then compares maintenance status, Python floors, and recent release history so you can choose on purpose.

How This Guide Was Built

This review is based on official documentation, package pages, and repository changelogs — we did not run these libraries hands-on. Sources include the pyfolio GitHub repository, the pyfolio-reloaded PyPI page, and the QuantStats changelog, with release dates taken from each package’s PyPI listing.

Nothing in this guide is investment advice. The tools are discussed only as software. Where the sources are silent, the post says so rather than filling the gap.

Three Tools, Three Different Questions

Each tool answers a different question: pyfolio-reloaded 0.10.2 covers portfolio performance, QuantStats covers return-series statistics and reports, and alphalens-reloaded 0.5.1 covers factor signal quality.

Treat this as a question map rather than a ranking. pyfolio-reloaded asks how a portfolio-level backtest performed. QuantStats asks what the risk and return statistics of a returns series look like. alphalens-reloaded asks whether a predictive factor carries signal before any portfolio is built. Each tool is useful for its own question, and the output of one rarely substitutes for another.

pyfolio-reloaded: The Classic Portfolio Tear Sheet, Now in Minimal Maintenance

The original pyfolio README says pyfolio was developed by Quantopian Inc for performance and risk analysis of financial portfolios. The pyfolio-reloaded 0.10.2 PyPI page declares it in minimal maintenance, limited to critical bug fixes, security issues, and essential compatibility updates, and says new feature development focuses on the current ML4T libraries.

The README describes the core idea as “a so-called tear sheet that consists of various individual plots.” No pyfolio function signature is verified in the sources used for this review, so this section describes the tool in prose and shows no calls.

Version support is the constraint to check first. The PyPI listing says version 0.10.2 supports Python 3.11 through 3.15 and that Python 3.9 and 3.10 are retired. On pandas, it supports 3.0 and 3.1 on Python 3.11 to 3.15 alongside existing pandas 1.5 and 2.x combinations where supported. Pandas 3.2 and later are not yet qualified.

Zipline is the other dependency to check. The README says pyfolio “works well with” the Zipline backtesting library, and the PyPI page notes that when sharing an environment with Zipline, its dependency constraints also apply. Zipline Reloaded 3.2.0 requires pandas below 3.0. For modern backtesting frameworks, see the vectorbt review and the NautilusTrader review.

QuantStats: Fast Stats and HTML Reports, Actively Maintained

QuantStats 0.0.86 was released Sep 27, 2026, and its GitHub repository requires Python 3.10 or newer and pandas 2.0 or newer, describing a 2026 modernization with pyproject.toml migration, a Monte Carlo module, and bug fixes. It operates on a returns series you supply, so you bring the data.

The README usage shows two calls that cover most first-pass work:

qs.stats.sharpe(stock)
qs.reports.html(stock, "SPY")

The first call computes a Sharpe statistic from stock, the series you pass in. The second builds an HTML report for the same series, passing SPY as its second argument. The README names quantstats.stats for metrics and quantstats.reports for reports.basic, reports.full, reports.html, and reports.metrics. Pick the entry point that matches the output you need, whether that is a metrics table or a shareable report.

The 2026 modernization also added a Monte Carlo module that puts bootstrap confidence intervals around returns, Sharpe, drawdown, and CAGR. HTML reports gained a parameters table, and the underwater plot now shows an average drawdown line. Because the library changes actively, its outputs deserve the version discipline covered in the next section.

Why Tear-Sheet Numbers Move Between Releases: The QuantStats Changelog Lesson

QuantStats 0.0.83 fixed rolling Sharpe and Sortino calculations whose risk-free rate was exactly 2x too large at the defaults (#549), and 0.0.86 corrected Average Win/Loss, Payoff Ratio, CPC Index, and Kelly figures for DataFrame input with a benchmark (#554 to #556), according to the QuantStats changelog.

The changelog is the most useful part of the QuantStats story. Rolling statistics passed the wrong parameter, so the risk-free rate was de-annualized over the rolling window instead of over the year. Version 0.0.82 also corrected the probabilistic Sharpe and Sortino math (#551) and noted that Kelly values change in magnitude from previous releases.

Version 0.0.83 fixed missing-data handling. _prepare_returns had filled missing observations with 0.0, and win rate was the most affected metric (#546). It also made the closed-form normal expected shortfall the default for conditional_value_at_risk, while method="historical" returns the empirical tail (#547).

The practical lesson is simple. Pin the QuantStats version in your dependency file, store the version beside every exported report, and re-run a fixed reference series after each upgrade so you can see which metrics moved. Without that record, a changed Sharpe ratio looks like a strategy change when it is really a library change. For structuring out-of-sample tests so that re-runs stay comparable, see the walk-forward analysis guide.

Alphalens-reloaded: Factor Tears, Not Portfolio Tears

Alphalens is a Python library for performance analysis of predictive (alpha) stock factors, surfacing information coefficient and turnover analysis, according to its GitHub repository. The alphalens-reloaded 0.5.1 release on PyPI is dated Oct 26, 2026, and it targets factors rather than portfolios.

The question changes with the tool. Alphalens asks whether a predictive factor has signal, not how an equity curve behaved. The repository’s usage shows two calls:

alphalens.utils.get_clean_factor_and_forward_returns(factor, pricing, quantiles=5, groupby=ticker_sector)
alphalens.tears.create_full_tear_sheet(factor_data)

In the first call, factor holds factor values, pricing holds price data, and groupby optionally takes sector labels such as ticker_sector. The second call takes the output of the first and renders the tear sheets. The alphalens-reloaded 0.5.1 page lists a Returns Tear Sheet, an Information Coefficient Tear Sheet, and a Sector Tear Sheet.

Alphalens surfaces information coefficient and turnover analysis among its outputs. The sources describe those analysis types but give no interpretation thresholds, so this post offers no cutoffs. The Alphalens tutorial on Quantopian shows the workflow in more depth. The example tear sheets in the repository are images only, so this review did not verify their specific outputs. The sources also give no maintenance status for alphalens-reloaded beyond its release date, so this post assigns none. For downside-focused measures that often sit beside factor work, see the Sortino ratio guide.

Which Tool Answers Which Question? (Comparison Table)

The table compares the three packages on the question each answers, its maintenance status, its Python floor, and its latest PyPI release.

Tool Question it answers Maintenance status Python floor Latest release (per PyPI)
pyfolio-reloaded Portfolio/backtest performance and risk Minimal maintenance (critical fixes only) 3.11 0.10.2, Nov 2, 2026
QuantStats Fast stats and HTML reports on a returns series Active (2026 modernization) 3.10 0.0.86, Sep 27, 2026
alphalens-reloaded Factor signal quality (IC, turnover) Not stated in sources Not stated in sources 0.5.1, Oct 26, 2026

Read the table by question first and maintenance second. A team that needs a classic portfolio view and a team that needs a factor check are not choosing between the same rows. “Not stated in sources” means the reviewed pages give no value, so the table does not estimate one.

Environment and Version Pinning

pyfolio-reloaded requires Python 3.11 through 3.15, according to its PyPI page, while QuantStats requires Python 3.10 or newer per its GitHub repository. The PyPI page points to the Python support schedule for release lifecycles, which is the reference for end-of-life context.

Pin exact versions in every project that generates tear sheets. A lock file should name pyfolio-reloaded, QuantStats, and alphalens-reloaded at the versions you intend to use, along with pandas, numpy, and scipy. The pyfolio-reloaded listing says pandas 3.2 and later are not yet qualified, and Zipline Reloaded 3.2.0 requires pandas below 3.0, so pandas is the pin to watch.

QuantStats has its own floors: pandas 2.0 or newer, numpy 1.24 or newer, scipy 1.11 or newer, seaborn 0.13 or newer, and matplotlib 3.7 or newer. Those are minimums, so an environment that meets all of them can still differ from the one that generated a report.

If pyfolio-reloaded and Zipline share an environment, keep their pandas constraints in view and consider separate virtual environments when they diverge. Store the Python interpreter version next to each report so a later reader can reconstruct the setup.

FAQ

The questions below use facts from the pyfolio-reloaded PyPI page, the QuantStats repository, and the Alphalens repository. None of the answers rests on hands-on testing, and each one notes what the sources leave open.

Is pyfolio still maintained?

Pyfolio is maintained in its pyfolio-reloaded form, but only in a limited way. The pyfolio-reloaded PyPI page says the project is in minimal maintenance, with further work limited to critical bug fixes, security issues, and essential compatibility updates. Version 0.10.2 was released Nov 2, 2026, so expect bug fixes rather than new features.

Can QuantStats replace pyfolio?

Only for some questions. QuantStats focuses on statistics and HTML reports for a returns series, while pyfolio produces a portfolio tear sheet, so they overlap but do not substitute. The QuantStats repository also shows that metric outputs changed across 0.0.82, 0.0.83, and 0.0.86, so compare results only within one pinned version.

What is the difference between Alphalens and pyfolio tear sheets?

The unit of analysis differs. Alphalens evaluates predictive stock factors through information coefficient and turnover analysis, per its GitHub repository, while pyfolio evaluates the performance and risk of a whole portfolio. Use Alphalens to ask whether a factor has signal, and pyfolio to ask how a portfolio behaved.

Which Python versions do these libraries support?

Pyfolio-reloaded 0.10.2 supports Python 3.11 through 3.15, according to its PyPI page. QuantStats requires Python 3.10 or newer, per its GitHub repository. The sources reviewed do not give an alphalens-reloaded Python floor, so that cell reads “Not stated in sources” in the comparison table.

Why did my tear-sheet metrics change after upgrading QuantStats?

Version 0.0.83 fixed a rolling Sharpe and Sortino risk-free rate that was exactly 2x too large at defaults (#549), and version 0.0.86 corrected Average Win/Loss, Payoff Ratio, CPC Index, and Kelly figures for DataFrame input with a benchmark (#554 to #556), per the QuantStats changelog. Pin the version and record it with each report.

The Bottom Line

Choose by question first, maintenance second: QuantStats is the actively developed option for quick statistics and reports on a returns series, pyfolio-reloaded remains in minimal maintenance, and alphalens-reloaded fits factor checks. The package facts above come from the linked PyPI pages and repositories.

QuantStats is the practical choice when you need fast statistics and HTML reports on a returns series from an actively developed package. Pin its version and record it with every output. pyfolio-reloaded suits teams that specifically want the classic Quantopian-style portfolio tear sheet and can accept minimal maintenance, limited to critical bug fixes and essential compatibility updates. alphalens-reloaded fits when the unit of analysis is a predictive factor rather than a portfolio.

For a related sizing topic, see the volatility targeting in Python guide.

← Back to all posts