I've created a pandas dataframe reading it from a scipy.io in the following way (file.sav is an IDL structure created on a different machine. The scipy.io creates a standard python dictionary):
from scipy import io
import pandas as p
import numpy as np
tmp=io.readsav('file.sav', python_dict = True)
df=pd.DataFrame(tmp,index=tmp['shots'].astype('int32'))
the dataframe contains a set of values (from file.sav) and as indices a series of integers of the form 19999,20000,30000 etc. Now I would like to take a subset of these indices, says
df.loc[[19999,20000]]
for some reasons I get errors of the form
raise ValueError('Cannot index with multidimensional key')
plus other and at the end
ValueError: Big-endian buffer not supported on little-endian compiler
But I've checked that both the machine I'm working on and the machine which has created the file.sav are both little endian. So I don't think this is the problem.