"""Public Python wrapper around the Rust ``_wbt.top_drawdowns`` symbol.
Accepts a daily-return ``pandas.Series`` (date-indexed) and returns a
``pandas.DataFrame`` with the rs-czsc-compatible top-N drawdown schema:
回撤开始 / 回撤结束 / 回撤修复 / 净值回撤 / 回撤天数 / 恢复天数 / 新高间隔
"""
"""Identify the top-N drawdown windows in a daily-return series.
:param returns: pandas Series indexed by date, holding daily
period-over-period returns (not cumulative). Index dtype must
be convertible to datetime.
:param top: maximum number of drawdowns to return; the actual row
count may be smaller if the underwater curve flattens out
before ``top`` drawdowns are extracted.
:return: DataFrame with columns
``回撤开始 / 回撤结束 / 回撤修复 / 净值回撤 / 回撤天数 / 恢复天数 / 新高间隔``.
"""
=
=
return