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
Release history Release notifications | RSS feed
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
File details
Details for the file getFamaFrenchFactors-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: getFamaFrenchFactors-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd8b5b17edaa6a47a656ba106bd9d6bb6c25e2c5ba398f9921f102ea40802ae |
|
MD5 | 9d4c49b6d5c60d55c58d07423cea890b |
|
BLAKE2b-256 | 7f0b64fe98112fed6a7554cb1cdab17ca115803f7c7e39da5c8c5d707045741b |