@@ -73,10 +73,6 @@ cpdef object get_value_box(ndarray arr, object loc):
7373 return util.get_value_1d(arr, i)
7474
7575
76- def set_value_at (ndarray arr , object loc , object val ):
77- return util.set_value_at(arr, loc, val)
78-
79-
8076# Don't populate hash tables in monotonic indexes larger than this
8177_SIZE_CUTOFF = 1000000
8278
@@ -404,18 +400,6 @@ cdef Py_ssize_t _bin_search(ndarray values, object val) except -1:
404400 else :
405401 return mid + 1
406402
407- _pad_functions = {
408- ' object' : algos.pad_object,
409- ' int64' : algos.pad_int64,
410- ' float64' : algos.pad_float64
411- }
412-
413- _backfill_functions = {
414- ' object' : algos.backfill_object,
415- ' int64' : algos.backfill_int64,
416- ' float64' : algos.backfill_float64
417- }
418-
419403
420404cdef class DatetimeEngine(Int64Engine):
421405
@@ -566,7 +550,7 @@ cpdef convert_scalar(ndarray arr, object value):
566550 # we don't turn bools into int/float/complex
567551
568552 if arr.descr.type_num == NPY_DATETIME:
569- if isinstance (value, np.ndarray ):
553+ if util.is_array (value):
570554 pass
571555 elif isinstance (value, (datetime, np.datetime64, date)):
572556 return Timestamp(value).value
@@ -577,7 +561,7 @@ cpdef convert_scalar(ndarray arr, object value):
577561 raise ValueError (" cannot set a Timestamp with a non-timestamp" )
578562
579563 elif arr.descr.type_num == NPY_TIMEDELTA:
580- if isinstance (value, np.ndarray ):
564+ if util.is_array (value):
581565 pass
582566 elif isinstance (value, timedelta):
583567 return Timedelta(value).value
0 commit comments