Skip to content
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

bugfix for quantopian/pyfolio#678 #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

severus-sn4pe
Copy link

this PR fixes quantopian#678 by skipping drawdowns while plotting that have no peak or recovery set in plot_drawdown_periods()

Copy link
Owner

@stefan-jansen stefan-jansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SInce pd.isna and pd.isnull are the same, the second condition on l451 is probably not needed?

Would be great if you could provide sample data so we can test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'NaTType' object has no attribute 'ordinal'
2 participants