-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ME breakpoints in fama french factors library #8842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am happy to put a PR that just reads the file using an if statement. |
@MichaelWS where/what is this breakpoints file? |
the breakpoints between the deciles. For example what is the 5%, 10%, etc. http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html#Breakpoints |
I am not sure how much this should be in pandas in general, but I feel like it should just work if famafrench is there. Someone brought this particular file up to me today. |
to the extent that other FamaFrench data exists not adverse to adding this. That said, might make sense to sping off some of these data utils to a new repo, maybe |
I agree that it makes sense. |
I definitely think some of the data makes more sense in a separate repo. I feel like data needs much more urgent releases than pandas would |
jreback, how would you envision pandas-data to work |
@MichaelWS let's discuss this in a separate issue (I am creating one) |
Not sure this is right place for this but new to Pandas and trying FamaFrench pandas: read data from Ken French's websiteff = web.DataReader('F-F_Research_Data_Factors', 'famafrench')[0] But this does not read data from Ken French's websiteff = web.DataReader('F-F_Momentum_Factor', 'famafrench')[0] |
@gitmmeanwell |
Thanks for the reply - any suggestions on how to resolve? New to pandas
|
Not using 0 in I don't know what you are trying to achieve, so difficult to say. I also don't exactly know the structure of that dataset. So you will have to specify your question more (but maybe http://stackoverflow.com/ is a better place to ask) |
Here is some more info on Use case - I'll head to StackOverflow to research Goal: use Pandas to read file from FamaFrench website and perform some load packages (if it's redundant it'll be ignored)import pandas.io.data as web anything after the hashtag is a comment#%reset the next one is an IPython command: it says put plots here in thenotebook, rather than in a separate window. read data from Ken French's websiteff = web.DataReader('F-F_Momentum_Factor', 'famafrench') NB: ff.xs is a conflict, rename to xsmff.columns = ['mom'] txt file structure example (file downloaded to local c:) - this is the This file was created by CMPT_ME_PRIOR_RETS using the 201412 CRSP Missing data are indicated by -99.99 or -999.
192701 0.44 On Sun, Feb 8, 2015 at 6:19 AM, Joris Van den Bossche <
|
Moving comment/issue to StackOverflow. |
web.DataReader('F-F_Momentum_Factor', 'famafrench') creates a dict with keys 1,2. 1 works for daily returns. |
@MichaelWS be sure to open an issue for that at https://github.com/pydata/pandas-datareader/issues to not forget that! (as the separate project is already there) |
and maybe also move this issue if you want |
Closing this in favor of pydata/pandas-datareader#21 |
ME_breakpoints.zip is not read because it is a different format.
In this zip, there is only one file "ME_Breakpoints.txt". How should this be handed?
The text was updated successfully, but these errors were encountered: