@@ -289,8 +289,8 @@ def isnullobj(ndarray[object] arr):
289
289
n = len (arr)
290
290
result = np.zeros(n, dtype = np.uint8)
291
291
for i from 0 <= i < n:
292
- arobj = arr[i]
293
- result[i] = arobj is NaT or _checknull(arobj )
292
+ val = arr[i]
293
+ result[i] = val is NaT or _checknull(val )
294
294
return result.view(np.bool_)
295
295
296
296
@ cython.wraparound (False )
@@ -303,10 +303,10 @@ def isnullobj_old(ndarray[object] arr):
303
303
n = len (arr)
304
304
result = np.zeros(n, dtype = np.uint8)
305
305
for i from 0 <= i < n:
306
- result[i] = util._checknull_old(arr[i])
306
+ val = arr[i]
307
+ result[i] = val is NaT or util._checknull_old(val)
307
308
return result.view(np.bool_)
308
309
309
-
310
310
@ cython.wraparound (False )
311
311
@ cython.boundscheck (False )
312
312
def isnullobj2d (ndarray[object , ndim = 2 ] arr):
@@ -323,20 +323,6 @@ def isnullobj2d(ndarray[object, ndim=2] arr):
323
323
result[i, j] = 1
324
324
return result.view(np.bool_)
325
325
326
- @ cython.wraparound (False )
327
- @ cython.boundscheck (False )
328
- def isnullobj_old (ndarray[object] arr ):
329
- cdef Py_ssize_t i, n
330
- cdef object val
331
- cdef ndarray[uint8_t] result
332
-
333
- n = len (arr)
334
- result = np.zeros(n, dtype = np.uint8)
335
- for i from 0 <= i < n:
336
- result[i] = util._checknull_old(arr[i])
337
- return result.view(np.bool_)
338
-
339
-
340
326
@ cython.wraparound (False )
341
327
@ cython.boundscheck (False )
342
328
def isnullobj2d_old (ndarray[object , ndim = 2 ] arr):
0 commit comments