Skip to content

Instantly share code, notes, and snippets.

@viniroger
Last active October 7, 2019 17:48
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 viniroger/a9633ca654b96203992a7a4d081abec0 to your computer and use it in GitHub Desktop.
Save viniroger/a9633ca654b96203992a7a4d081abec0 to your computer and use it in GitHub Desktop.
Print all elements from array
# Print all numpy array, without truncation
import sys
import numpy
numpy.set_printoptions(threshold=sys.maxsize)
# Print all pandas dataframe, without truncation
with pd.option_context('display.max_rows', None, 'display.max_columns', None): # more options can be specified also
print(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment