In this tutorial, we will introduce how to print a full numpy array without truncation. You can learn how to do by following our steps.
Look at example code below:
import numpy as np data = np.random.random([50, 50]) print(data)
Run this code, you will see this result:
You will find we can not see full numpy array.
How to print full numpy array?
We can use np.set_printoptions(threshold=np.inf) to implement it.
Look at this example:
import numpy as np np.set_printoptions(threshold=np.inf) data = np.random.random([50, 50]) print(data)
Run this code, you will see this full numpy array as follows: