data is a pandas Panel

`data
<class 'pandas.core.panel.Panel'>
Dimensions: 16 (items) x 1954 (major_axis) x 6 (minor_axis)
Items axis: ADRE to SPY
Major_axis axis: 2004-12-01 00:00:00+00:00 to 2012-08-31 00:00:00+00:00
Minor_axis axis: open to price`

Save to disk

```
pandas.to_pickle(data, 'data.pkl')

```

But when I try to read pkl file

```
pandas.read_pickle('data.pkl')

```

I get:

> 
> `
>  --------------------------------------------------------------------------- IndexError Traceback (most recent call
>  last) in ()
>  1 print type(data)
>  2 data.to\_pickle('G:\temp\test.pkl')
>  ----> 3 pd.read\_pickle('G:\temp\test.pkl')
> 
> 
> C:\Python27\lib\site-packages\pandas-0.13.1-py2.7-win32.egg\pandas\io\pickle.pyc
>  in read\_pickle(path)
>  47 
>  48 try:
>  ---> 49 return try\_read(path)
>  50 except:
>  51 if PY3:
> 
> 
> C:\Python27\lib\site-packages\pandas-0.13.1-py2.7-win32.egg\pandas\io\pickle.pyc
>  in try\_read(path, encoding)
>  44 except:
>  45 with open(path, 'rb') as fh:
>  ---> 46 return pc.load(fh, encoding=encoding, compat=True)
>  47 
>  48 try:
> 
> 
> C:\Python27\lib\site-packages\pandas-0.13.1-py2.7-win32.egg\pandas\compat\pickle\_compat.pyc
>  in load(fh, encoding, compat, is\_verbose)
>  87 up.is\_verbose = is\_verbose
>  88 
>  ---> 89 return up.load()
>  90 except:
>  91 raise
> 
> 
> C:\Python27\lib\pickle.pyc in load(self)
>  856 while 1:
>  857 key = read(1)
>  --> 858 dispatchkey
>  859 except \_Stop, stopinst:
>  860 return stopinst.value
> 
> 
> C:\Python27\lib\site-packages\pandas-0.13.1-py2.7-win32.egg\pandas\compat\pickle\_compat.pyc
>  in load\_reduce(self)
>  16 args = stack.pop()
>  17 func = stack[-1]
>  ---> 18 if type(args[0]) is type:
>  19 n = args[0].**name**
>  20 if n == u('DeprecatedSeries') or n == u('DeprecatedTimeSeries'):
> 
> 
> IndexError: tuple index out of range
> 
> 
> `
> 
> 
> 
> 
> ---
> 
> 
> 

I can work around this, but my question is "am I using to/from pickle correctly"?