if len(idx) == 2:
if idx[0] in self.rows:
data = {}
for key,value in self._dict[idx[0]].items():
data[key] = []
After Change
// if it points to the columns
if idxA in self.cols:
data = {}
for i,j in [(self._data[i][self._rowIdx],i) for
i in self._array[:,self.cols.index(idxA)] if i != 0]:
try:
data[i] += [j]
except:
data[i] = [j]
return data
else: