MCPcopy Create free account
hub / github.com/apache/arrow / labelled

Function labelled

dev/archery/archery/cli.py:642–648  ·  view source on GitHub ↗
(title, df)

Source from the content-addressed store, hash-verified

640 df = df.sort_values(by='change %', ascending=False)
641
642 def labelled(title, df):
643 if len(df) == 0:
644 return ''
645 title += f': ({len(df)})'
646 df_str = df.to_string(index=False)
647 bar = '-' * df_str.index('\n')
648 return '\n'.join([bar, title, bar, df_str])
649
650 return '\n\n'.join([labelled('Non-regressions', df[:first_regression]),
651 labelled('Regressions', df[first_regression:])])

Callers 1

Calls 4

lenFunction · 0.85
to_stringMethod · 0.45
indexMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected