Esempio n. 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
    def indexMap(self):
        if not hasattr(self, '_cache_indexMap'):
            self._cache_indexMap = _tseries.map_indices(self)

        return self._cache_indexMap
Esempio n. 4
0
 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)
Esempio n. 5
0
    def indexMap(self):
        if not hasattr(self, '_cache_indexMap'):
            self._cache_indexMap = map_indices(self)

        return self._cache_indexMap
Esempio n. 6
0
    def indexMap(self):
        if not hasattr(self, "_cache_indexMap"):
            self._cache_indexMap = _tseries.map_indices(self)

        return self._cache_indexMap