not sure if it's scipy related that's why include python tag.
i have grid of data. whenever try access in grid :
d = pd.read_csv('debugdata1.csv') d[1,:]
i typeerror: unhashable type
took @ data in variable explorer : index
of data looks (1l,32,432 ... more integers). problem?
here's stack trace :
file "<ipython-input-3-2f510ec7ef6f>", line 1, in <module> d[1,:] file "c:\users\hristo\anaconda\lib\site-packages\pandas\core\frame.py", line 1797, in __getitem__ return self._getitem_column(key) file "c:\users\hristo\anaconda\lib\site-packages\pandas\core\frame.py", line 1804, in _getitem_column return self._get_item_cache(key) file "c:\users\hristo\anaconda\lib\site-packages\pandas\core\generic.py", line 1082, in _get_item_cache res = cache.get(item)
since using pandas
module, access elements loc
or iloc
or ix
. in case
d.iloc[1,:]
or
d.ix[1,:]
Comments
Post a Comment