How Do I View Data Object Contents Within An Npz File?
I am using Spyder IDE and Python 2.7. I have a npz file called data.npz which was given to me. I want to load this file into Spyder and view whatever is inside. To start I've done
Solution 1:
to obtain a list of all the constituent files, simply use:
$ data.files
Solution 2:
Try accessing each key in the dictionary as follows:
data['a']
data['b']
Post a Comment for "How Do I View Data Object Contents Within An Npz File?"