summarydataframe#

API documentation for tradeexecutor.utils.summarydataframe Python module in Trading Strategy.

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: tradeexecutor.utils.summarydataframe.Format)

Functions#

as_bars(v)

Format value as number of bars.

as_decimal(v)

Format a decimal value

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[, column_names, ...])

Create a summary table from a human readable data.

format_value(v_instance)

Format a single value

format_values(values)

Format a list of values