formatters
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| FormatOptions cutepandas.frames.formatters How cell values are turned into display text. |
🛈 DocStrings¶
Per-kind display formatters (Qt-free, applied to one chunk at a time).
FormatOptions
dataclass
¶
How cell values are turned into display text.
Source code in src/cutepandas/frames/formatters.py
float_precision
class-attribute
instance-attribute
¶
Significant digits for floats ({:.6g}, whole numbers keep a .0).
max_text_length
class-attribute
instance-attribute
¶
Longer texts are cut and end with an ellipsis (the tooltip shows all).
thousands_separator
class-attribute
instance-attribute
¶
Group digits of integers and floats (1,234,567).
format_chunk
¶
Format a chunk of values; missing values become null_text.
Source code in src/cutepandas/frames/formatters.py
formatter_for
¶
formatter_for(kind: Kind, options: FormatOptions) -> Formatter
Return a function that formats one non-null value of the given kind.