marketflows.plots.tables

Table rendering.

Generates PNG percent-gain tables over configured time offsets for each category and base asset.

Functions

create_category_tables(*, flow_type, ...)

Create tables for the specific category.

marketflows.plots.tables.create_category_tables(*, flow_type, category, symbols, groups, df, provider_config, plot_config, out_dir)

Create tables for the specific category.

Parameters:
  • flow_type (Literal['narratives', 'market_cap_ranges', 'individual_assets']) – the flow type we want to collect data for

  • category (str) – used as prefix for title and file name

  • symbols (dict[str, str]) – symbol for each asset/group

  • groups (list[str]) – the labels of the rows in the table

  • df (DataFrame) – dataframe containing all data (and possibly more)

  • provider_config (ProviderConfig) – the configuration settings for providers

  • plot_config (PlotConfig) – the configuration settings for plotting

  • out_dir (Path) – directory where tables are saved

Return type:

None

Examples: