Created
December 6, 2022 12:18
-
-
Save e96031413/85a15aea41f3c8dfd05c869ba2b5e3e0 to your computer and use it in GitHub Desktop.
pandas設定float顯示精度
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/a/46672301/13369757 | |
import pandas as pd | |
pd.set_option('display.float_format', '{:.2f}'.format) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment