(returns, benchmark)
| 41 | |
| 42 | |
| 43 | def _match_dates(returns, benchmark): |
| 44 | if isinstance(returns, _pd.DataFrame): |
| 45 | loc = max(returns[returns.columns[0]].ne(0).idxmax(), benchmark.ne(0).idxmax()) |
| 46 | else: |
| 47 | loc = max(returns.ne(0).idxmax(), benchmark.ne(0).idxmax()) |
| 48 | returns = returns.loc[loc:] |
| 49 | benchmark = benchmark.loc[loc:] |
| 50 | |
| 51 | return returns, benchmark |
| 52 | |
| 53 | |
| 54 | def html( |