pyphi.display.numbers.format_column#

pyphi.display.numbers.format_column(values, sig_figs=6)[source]#

Format one table column, aligning numbers on the decimal point.

If every value is a real number, each formatted string is padded with spaces so that the decimal points (or the ends of integers) share a character position and all strings have equal length; in a monospace font the column then reads as decimal-aligned under any text alignment. A column containing any non-numeric value is formatted cell by cell, unpadded.

Parameters:

sig_figs (int)

Return type:

list[str]