Skip to main content

Returns Fama French Factors as a Pandas Dataframe

Project description


This programme gets data for fame french factors from the Kenneth French library and returns it as a pandas dataframe.


Run the following to install:

pip install getFamaFrenchFactors


Factors can be extracted in monthly ('m') and annual ('a') frequencies. The default is monthly.

import getFamaFrenchFactors as gff

# Get the Fama French 3 factor model (monthly data)
df_ff3_monthly = gff.famaFrench3Factor(frequency='m') 

# Get the Fama French 3 factor model (annual data)
df_ff3_annual = gff.famaFrench3Factor(frequency='a')

Other options:

  • Momentum factor: momentumFactor()
  • Carhart 4 factor: carhart4Factor()
  • Fama French 5 factor: famaFrench5Factor()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for getFamaFrenchFactors, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size getFamaFrenchFactors-0.0.5-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page