Formatting the table
Hi Guys!
Rookie question but is it possible to format the output of mo.ui.table() ?
Like do rounding and add percentages and stuff
I do have the global setting for anything pandas related to be rounded:
pd.options.display.float_format = "{:,.2f}".format
But it does not seem to be effecting the output of mo.ui.table()
2 Replies
We likely don’t handle the pd options display, but we totally should. I can look into this. Would you mind filing an issue in GitHub?
To work around it now, you can likely convert them to strings and format them on the Python side before passing to mo.ui.table
Hey Myles, thanks for the suggestion, will also try to fill ehte GitHub issue