I wish to only round values in the dataframe for display purposes, when I use head() or tail() but I want the dataframe to retain the original values.
I tried using the round method but it changes the values in the original dataframe. I don't wish to create a separate copy each time for this purpose.
Is there any other way than creating a separate copy?
Edit : I′m having trouble glancing at values because some columns have e^10 notations. I'd just like to have a look at two to three decimal places maximum and not keep glancing at exponent values.
Edit 2 : Solved. Thanks for the quick response.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…