@@ -229,45 +229,6 @@ cdef class IntIndex(SparseIndex):
229
229
results[mask] = res
230
230
return results
231
231
232
- cpdef ndarray reindex(self , ndarray[float64_t, ndim= 1 ] values,
233
- float64_t fill_value, SparseIndex other_):
234
- cdef:
235
- Py_ssize_t i = 0 , j = 0
236
- IntIndex other
237
- ndarray[float64_t, ndim= 1 ] result
238
- ndarray[int32_t, ndim= 1 ] sinds, oinds
239
-
240
- other = other_.to_int_index()
241
-
242
- oinds = other.indices
243
- sinds = self .indices
244
-
245
- result = np.empty(other.npoints, dtype = np.float64)
246
- result[:] = fill_value
247
-
248
- for i in range (other.npoints):
249
- while oinds[i] > sinds[j] and j < self .npoints:
250
- j += 1
251
-
252
- if j == self .npoints:
253
- break
254
-
255
- if oinds[i] < sinds[j]:
256
- continue
257
- elif oinds[i] == sinds[j]:
258
- result[i] = values[j]
259
- j += 1
260
-
261
- return result
262
-
263
- cpdef put(self , ndarray[float64_t, ndim= 1 ] values,
264
- ndarray[int32_t, ndim= 1 ] indices, object to_put):
265
- pass
266
-
267
- cpdef take(self , ndarray[float64_t, ndim= 1 ] values,
268
- ndarray[int32_t, ndim= 1 ] indices):
269
- pass
270
-
271
232
272
233
cpdef get_blocks(ndarray[int32_t, ndim= 1 ] indices):
273
234
cdef:
@@ -585,38 +546,6 @@ cdef class BlockIndex(SparseIndex):
585
546
cum_len += lens[j]
586
547
return results
587
548
588
- cpdef ndarray reindex(self , ndarray[float64_t, ndim= 1 ] values,
589
- float64_t fill_value, SparseIndex other_):
590
- cdef:
591
- Py_ssize_t i = 0 , j = 0 , ocur, ocurlen
592
- BlockIndex other
593
- ndarray[float64_t, ndim= 1 ] result
594
- ndarray[int32_t, ndim= 1 ] slocs, slens, olocs, olens
595
-
596
- other = other_.to_block_index()
597
-
598
- olocs = other.blocs
599
- olens = other.blengths
600
- slocs = self .blocs
601
- slens = self .blengths
602
-
603
- result = np.empty(other.npoints, dtype = np.float64)
604
-
605
- for i in range (other.nblocks):
606
- ocur = olocs[i]
607
- ocurlen = olens[i]
608
-
609
- while slocs[j] + slens[j] < ocur:
610
- j += 1
611
-
612
- cpdef put(self , ndarray[float64_t, ndim= 1 ] values,
613
- ndarray[int32_t, ndim= 1 ] indices, object to_put):
614
- pass
615
-
616
- cpdef take(self , ndarray[float64_t, ndim= 1 ] values,
617
- ndarray[int32_t, ndim= 1 ] indices):
618
- pass
619
-
620
549
621
550
@cython.internal
622
551
cdef class BlockMerge:
0 commit comments