astanin / python-tabulate

Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate.
https://pypi.org/project/tabulate/
MIT License
2.08k stars 162 forks source link

Placeholder for empty cells #311

Open dsoprea opened 6 months ago

dsoprea commented 6 months ago

Traditionally, I'd rather show a specific placeholder in empty cells to distinguish between absent and a zero value. However, using a string in a column that's been designated as float obviously derails precision management. The only nonfloat supported in those columns is None. Is there a way of telling Tabulate to render a certain character/string when it encounters a None, instead of an empty string?