Last active
October 7, 2019 17:48
-
-
Save viniroger/a9633ca654b96203992a7a4d081abec0 to your computer and use it in GitHub Desktop.
Print all elements from array
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
# 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