macrosynergy.visuals.view_panel_dates#

view_panel_dates(df, size=None, use_last_businessday=True, header=None, title_fontsize=None, row_order=None, return_fig=False)[source]#

Visualize panel dates with color codes.

Parameters:
  • df (DataFrame) – A standardized Quantamental DataFrame with dates as index and series as columns.

  • size (Tuple[float, float]) – tuple of floats with width/length of displayed heatmap.

  • use_last_businessday (bool) – boolean indicating whether or not to use the last business day before today as the end date. Default is True.

  • header (str) – A string to be used as the title of the heatmap. If None, a default header will be used based on the data type of the DataFrame.

  • title_fontsize (int) – Font size for the title of the heatmap. Default is None (automatic sizing).

  • row_order (List[str]) – A list of strings specifying the order of rows in the heatmap. These rows correspond to the columns of the input DataFrame. If None, the default order used by Seaborn will be applied.

  • return_fig (bool) – If True, returns the Matplotlib figure object instead of showing it.