I was trying to write a million digits of pi in an array with each digit as an individual element of the array. The values are loaded from a '.txt' file from my computer. I have seen a similar question here. Written by the help of this, my code is:
import numpy as np
data = np.loadtxt('pi.txt')
print(map(int, str(data)))
But the output is this:
<map object at 0x0000000005748EB8>
Process finished with exit code 0
What does it mean?