Skip to content

Instantly share code, notes, and snippets.

@HumanRupert
Created June 11, 2021 15:12
Show Gist options
  • Save HumanRupert/303d73000ba7a682043df2bc83665063 to your computer and use it in GitHub Desktop.
Save HumanRupert/303d73000ba7a682043df2bc83665063 to your computer and use it in GitHub Desktop.
def analyze(perf: pd.DataFrame, bench: pd.Series) -> None:
returns, positions, transactions = pf.utils.extract_rets_pos_txn_from_zipline(perf)
pf.create_full_tear_sheet(returns=returns, benchmark_rets=bench)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment