-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ValueError: Found input variables with inconsistent numbers of samples: [127, 185] #486
Comments
Right, I get the same error. It seems only the validation check for "fama_french" plot fails. I have individually tried the other plots, they are ok with the dame data. |
I seems to be getting the same on "fama_french" plot, any pointers to resolve this will be much appreciated. Thanks |
We should fail gracefully if the |
PRs welcome! |
i have same error |
I'm facing the same error. Has anybody found the solution? |
+1 I even put Returns df and Benchmark_rets df to a same index, removed NaN, checked their shapes (are the same) but I always end up in this error. |
Ok, I found a workaround - actually a feature of Python which is unheard of in C-family languages. You can change an external module function to an arbitrary code. So the error in So you can simply change the This way you will disable the faulty fama_french. |
@nemozny Or you could update to master where this function has been removed ( |
Closed by #536. |
in pyfolio's rolling_fama_french function(line 550) in timeseries.py
|
I am trying to run the various
create_*_tear_sheet
, but it always failes with this error.It seems to work with the return series dowloaded by Pyfolio as shown in the tutorial.
here is my code:
and here is the error:
here is a description of my series:
The text was updated successfully, but these errors were encountered: