I want to set the precision for floats when using Colab Data Table Display
I'm finding that the code below works as intended in the native pandas dataframe display, but it does not work for the otherwise snazzier Data Table display.
import pandas as pd
df = pd.DataFrame(np.random.rand(15, 4), columns=list('ABCD'))
df.style.format("{:.2%}")
or alternatively for the last line above
pd.options.display.float_format = '{:,.2f}'.format
The Colab demo for this feature also displays floats with ugly levels of precision, but I am hoping there's a way to control formatting. Any guidance greatly appreciated.