Skip to main content

Returns Fama French Factors as a Pandas Dataframe

Project description

getFamaFrenchFactors

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

Installation

Run the following to install:

pip install getFamaFrenchFactors

Usage

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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

getFamaFrenchFactors-0.0.5-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page