show_drawdowns

czsc.show_drawdowns(df: DataFrame, ret_col, **kwargs)[source]

展示最大回撤分析

Parameters:
  • df – pd.DataFrame, columns: cells, index: dates

  • ret_col – str, 回报率列名称

  • kwargs

    • sub_title: str, optional, 子标题

    • top: int, optional, 默认10, 返回最大回撤的数量