Skip to content

Instantly share code, notes, and snippets.

@seufagner
Created January 6, 2017 19:04
Show Gist options
  • Save seufagner/021ee8668d9fc490e265f9b600034cd9 to your computer and use it in GitHub Desktop.
Save seufagner/021ee8668d9fc490e265f9b600034cd9 to your computer and use it in GitHub Desktop.
format pandas float point
import pandas as pd
pd.set_option('display.float_format', lambda x: '%.3f' % x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment