from great_tables import vals
3, 5]) vals.fmt_roman([
['III', 'V']
Format values as Roman numerals.
With numeric values we can transform those to Roman numerals, rounding values as necessary.
x : X
A list of values to be formatted.
case : str
= 'upper'
Should Roman numerals should be rendered as uppercase ("upper"
) or lowercase ("lower"
) letters? By default, this is set to "upper"
.
pattern : str
= '{x}'
A formatting pattern that allows for decoration of the formatted value. The formatted value is represented by the {x}
(which can be used multiple times, if needed) and all other characters will be interpreted as string literals.
: list
[str
]
A list of formatted values is returned.