numpy/scipy/ipython:Failed to interpret file as a pickle

The numpy.load routine is for loading pickled .npy or .npz binary files, which can be created using numpy.save and numpy.savez, respectively. Since you have text data, these are not the routines you want. You can load your comma-separated values with numpy.loadtxt. Full Example Here’s a complete example (using StringIO to simulate the file I/O). Now we have:

TypeError: zip argument #2 must support iteration

It sounds like you have three arrays itemNameList, array_x, and array_y Assuming they are all the same shape, you can just do: EDIT Your problem is that array_x and array_y are not actual numpy.array objects, but likely numpy.int32 (or some other non-iterable) objects: Perhaps their initialization is not going as expected, or they are being changed from arrays somewhere in your code?

Installing Pylab/Matplotlib

I’m trying to write a program that plots a graph, which made me look into Matplotlib. I found a tutorial that started out with this little program, that worked fine: Then I tried to run it on another computer, where it did not work at all. I tried to download Pylab and Matplotlib. When I … Read more

Pandas dataframe groupby plot

Simple plot, you can use: Or you can set the index to be Date beforehand, then it’s easy to plot the column you want: If you want a chart with one series by ticker on it You need to groupby before: If you want a chart with individual subplots: