Skip to content

Instantly share code, notes, and snippets.

@sergeant-wizard
Created March 23, 2017 02:15
Show Gist options
  • Save sergeant-wizard/f6f1164a47fd03657fd6ac3581dcd415 to your computer and use it in GitHub Desktop.
Save sergeant-wizard/f6f1164a47fd03657fd6ac3581dcd415 to your computer and use it in GitHub Desktop.
numpy print format
np.set_printoptions(formatter={'float': lambda x: '%+1.1f' % x}, linewidth=50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment