MCPcopy Index your code
hub / github.com/modelscope/modelscope / print_table_result

Function print_table_result

tests/run.py:522–531  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

520
521
522def print_table_result(df):
523 df = df.loc[df['Result'] != 'Skipped']
524 df = df.drop('Info', axis=1)
525 formatters = {
526 'Name': '{{:<{}s}}'.format(df['Name'].str.len().max()).format,
527 'Result': '{{:<{}s}}'.format(df['Result'].str.len().max()).format,
528 }
529 with pandas.option_context('display.max_rows', None, 'display.max_columns',
530 None, 'display.width', None):
531 print(df.to_string(justify='left', formatters=formatters, index=False))
532
533
534def main(args):

Callers 2

run_in_subprocessFunction · 0.85
mainFunction · 0.85

Calls 3

printFunction · 0.85
dropMethod · 0.80
maxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…