'Pyfolio not creating a good tear sheet with proper time series - divide by zero

currently I have been trying to use pyfolio to get a simple tear sheet but it isn't working for reasons unknown. If there is any other information that I must communicate please let me know.

How my Data Frame Looks like How my Data Frame Looks like

Using the following code pf.create_simple_tear_sheet(Stock["Strategy"])

How the Pyfolio tear sheet looks like

How the Pyfolio tear sheet looks like



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source