Skip to content

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