qis.compute_periodic_returns_table

qis.compute_periodic_returns_table(prices, heatmap_freq='YE', column_period='ME', row_date_format='%Y', is_inverse_order=False, is_add_annual_column=True, ytd_name='YTD')[source]

compute table for heatmap: columns are monthly returns, rows are years implemented only for single asset with price passed as series

Parameters:
  • prices (Series)

  • heatmap_freq (str)

  • column_period (str | None)

  • row_date_format (str)

  • is_inverse_order (bool)

  • is_add_annual_column (bool)

  • ytd_name (str)

Return type:

DataFrame