Imagine I have this list:
df = pandas.DataFrame([1, 2.321, 13.3444, 7.5, 5])
How can I make the output table show whole numbers without decimal places and others with, say 2, decimal places? Something like this:
1 2.30 13.34 7.50 5
instead of this:
1.00 2.30 13.34 7.50 5.00