示例#1
0
    def test_booleanindex(self):
        boolIdx = np.repeat(True, len(self.strIndex)).astype(bool)
        boolIdx[5:30:2] = False

        subIndex = self.strIndex[boolIdx]
        common.assert_dict_equal(tseries.map_indices(subIndex),
                                 subIndex.indexMap)
示例#2
0
文件: index.py 项目: jlsandell/pandas
 def __setstate__(self, state):
     """Necessary for making this object picklable"""
     np.ndarray.__setstate__(self, state)
     self._cache_indexMap = _tseries.map_indices(self)
     self._cache_allDates = _tseries.isAllDates(self)
示例#3
0
文件: index.py 项目: jlsandell/pandas
    def indexMap(self):
        if not hasattr(self, '_cache_indexMap'):
            self._cache_indexMap = _tseries.map_indices(self)

        return self._cache_indexMap
示例#4
0
文件: index.py 项目: willgrass/pandas
 def __setstate__(self,state):
     """Necessary for making this object picklable"""
     np.ndarray.__setstate__(self, state)
     self._cache_indexMap = map_indices(self)
     self._cache_allDates = isAllDates(self)
示例#5
0
文件: index.py 项目: willgrass/pandas
    def indexMap(self):
        if not hasattr(self, '_cache_indexMap'):
            self._cache_indexMap = map_indices(self)

        return self._cache_indexMap
示例#6
0
文件: index.py 项目: choketsu/pandas
    def indexMap(self):
        if not hasattr(self, "_cache_indexMap"):
            self._cache_indexMap = _tseries.map_indices(self)

        return self._cache_indexMap