January 2020
Beginner to intermediate
432 pages
11h 24m
English
We already showed how to download the factor-related data directly from prof. French's website. As an alternative, we can use the functionalities of pandas_datareader and avoid some manual preprocessing steps:
from pandas_datareader.famafrench import get_available_datasetsimport pandas_datareader.data as web
get_available_datasets()[:5]
The preceding code results in the following output:
['F-F_Research_Data_Factors', 'F-F_Research_Data_Factors_weekly', 'F-F_Research_Data_Factors_daily', 'F-F_Research_Data_5_Factors_2x3', 'F-F_Research_Data_5_Factors_2x3_daily']
ff_dict = web.DataReader('F-F_Research_Data_Factors', ...Read now
Unlock full access