summarydataframe#

tradingstrategy.utils.summarydataframe Python module in Trading Strategy framework.

Module description#

Summary table dataframe helpers.

You can annotate the format of different values.

Classes#

Format

Format different summary value cells.

Value

Value(v: object, format: tradingstrategy.utils.summarydataframe.Format)

Functions#

as_bars(v)

Format value as number of bars

as_dollar(v)

Format value as US dollars

as_duration(v)

Format value as a duration

as_integer(v)

Format value as an integer

as_missing()

Format a missing value e.g.

as_percent(v)

Format value as a percent

create_summary_table(data)

Create a summary table from a human readable data.

format_value(v_instance)