I have a dataframe with integer and float columns like so:
And as you can see, some values in the Days_to_Sell column have no decimal places, while others have 4. In order to try and have some sorts of consistency, I want to use only 2 decimal places. In order to achieved that, I use the panda’s round function like so:
But got the same result.
Is there anyway I can change the number of decimal places besides using .round, that actually works with streamlit?