I am a newbie and I tried to calculate quintiles of yearly returns but got an output that I cannot understand. May I ask your help?
Please find below my questions:
- Does the method .quintiles of every factor calculate quintiles of a given factor daily?
- It seems that Returns(window_length=252).quintiles() produces quintiles that contain uneven number of stocks. How is this possible?
- If I try to calculate returns' quintiles using pandas' qcut function I get different quintile labels. Why does this happen?
I attach a notebook that's useful to present my questions.
What I am misunderstanding here?
Thanks in advance.