get_ff_factors

eap_pl.get_ff_factors(
    dataset,
    *,
    vintage='201406',
    cache_dir='data/french-factors',
    timeout=30.0,
)

Download and cache a vintage of Kenneth French’s US factors.

Parameters

Name Type Description Default
dataset str “daily”, “monthly”, or “annual” for the three Fama–French factors and the risk-free rate. Use “momentum_daily”, “momentum”, or “momentum_annual” for daily, monthly, or annual momentum. Use “reversal” for monthly short-term reversal. required
vintage str | int CRSP vintage in YYYYMM format. June 2014 and December 2024 cover all datasets. September 2015 covers the three-factor and momentum datasets. July 2016 and December 2025 cover monthly and annual three-factor data. April 2026 covers daily three-factor data. '201406'
cache_dir str | Path Directory for the original text from the ZIP file. A cached file is reused when it matches the source checksum. 'data/french-factors'
timeout float Download timeout in seconds. 30.0

Returns

Name Type Description
polars.DataFrame Decimal returns sorted by date (daily and monthly) or integer year (annual). Monthly dates are the first day of the month. Annual returns come from the published annual section of the same archive as the monthly data. Columns are mktrf, smb, hml, and rf for the three-factor series, mom for momentum, and str for short-term reversal.