Input-Output

Show results

streng.common.io.output.OutputString(data) An output given as a list of strings
streng.common.io.output.OutputTable(data) An output table given as a list of dictionaries.
streng.common.io.output.OutputExtended(…)

Classes

class streng.common.io.output.OutputString(data: List[str] = <factory>)[source]

An output given as a list of strings

data

A list of strings

Type:List[str]
class streng.common.io.output.OutputTable(data: List[dict] = <factory>)[source]

An output table given as a list of dictionaries.

It can be presented (and used) as a pandas dataframe or a markdown table

data

A list of dictionaries

Type:List[dict]
static change_dict_to_quantity_value_data(dict)[source]
static convert_data_to_dataframe(list_of_dicts)[source]
static convert_data_to_markdown_table(list_of_dicts, table_format='pipe', float_fmt='.3E')[source]
retrieve(search_field, search_value, find_field)[source]
retrieve_column_to_list(column_name)[source]
to_markdown

converts data to a markdown table using tabulate.

Type:str
to_panda_dataframe
to_quantity_value
class streng.common.io.output.OutputExtended(OutputTables:Dict[str, streng.common.io.output.OutputTable]=<factory>, OutputStrings:Dict[str, streng.common.io.output.OutputString]=<factory>)[source]

Jupyter Notebooks