Skip to content

Instantly share code, notes, and snippets.

@e96031413
Created December 6, 2022 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e96031413/85a15aea41f3c8dfd05c869ba2b5e3e0 to your computer and use it in GitHub Desktop.
Save e96031413/85a15aea41f3c8dfd05c869ba2b5e3e0 to your computer and use it in GitHub Desktop.
pandas設定float顯示精度
# 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