Closed holymonkey808 closed 4 years ago
This happened because the input dataframe was not generated by alphalens.utils.get_clean_factor_and_forward_returns, which is fine as long as you read the function documentation and makes sure your input dataframe is built in the same way as get_clean_factor_and_forward_returns
does. It would also help to have a look at the function implementation, which would clarify few details.
Problem Description
Having the above error when providing a multiindex dataframe without setting freq. Anyway to set date freq after dataframe is created? should Performance.py line 740 and 793 be changed to use pd.infer_freq?
Please provide a minimal, self-contained, and reproducible example:
Please provide the full traceback:
Please provide any additional information below:
Versions