You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import sparsity as sp
import numpy as np
sf = sp.SparseFrame(np.random.rand(10, 10))
sf.iloc[[2, 3]]
With pandas 0.20.3 it works as expected, but with pandas 0.21.0 following error is thrown:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mdank/python_libs/sparsity/sparsity/indexing.py", line 16, in __getitem__
return super().__getitem__(item)
File "/home/mdank/anaconda3/envs/sparsity-new-pandas/lib/python3.6/site-packages/pandas/core/indexing.py", line 1373, in __getitem__
return self._getitem_axis(maybe_callable, axis=axis)
File "/home/mdank/anaconda3/envs/sparsity-new-pandas/lib/python3.6/site-packages/pandas/core/indexing.py", line 1819, in _getitem_axis
return self._get_list_axis(key, axis=axis)
File "/home/mdank/anaconda3/envs/sparsity-new-pandas/lib/python3.6/site-packages/pandas/core/indexing.py", line 1794, in _get_list_axis
return self.obj._take(key, axis=axis, convert=False)
AttributeError: 'SparseFrame' object has no attribute '_take'
iloc with single index (eg. sf.iloc[2]) works ok with both pandas versions.
The text was updated successfully, but these errors were encountered:
Consider this code:
With pandas 0.20.3 it works as expected, but with pandas 0.21.0 following error is thrown:
iloc
with single index (eg.sf.iloc[2]
) works ok with both pandas versions.The text was updated successfully, but these errors were encountered: