@@ -73,10 +73,6 @@ cpdef object get_value_box(ndarray arr, object loc):
73
73
return util.get_value_1d(arr, i)
74
74
75
75
76
- def set_value_at (ndarray arr , object loc , object val ):
77
- return util.set_value_at(arr, loc, val)
78
-
79
-
80
76
# Don't populate hash tables in monotonic indexes larger than this
81
77
_SIZE_CUTOFF = 1000000
82
78
@@ -404,18 +400,6 @@ cdef Py_ssize_t _bin_search(ndarray values, object val) except -1:
404
400
else :
405
401
return mid + 1
406
402
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
-
419
403
420
404
cdef class DatetimeEngine(Int64Engine):
421
405
@@ -566,7 +550,7 @@ cpdef convert_scalar(ndarray arr, object value):
566
550
# we don't turn bools into int/float/complex
567
551
568
552
if arr.descr.type_num == NPY_DATETIME:
569
- if isinstance (value, np.ndarray ):
553
+ if util.is_array (value):
570
554
pass
571
555
elif isinstance (value, (datetime, np.datetime64, date)):
572
556
return Timestamp(value).value
@@ -577,7 +561,7 @@ cpdef convert_scalar(ndarray arr, object value):
577
561
raise ValueError (" cannot set a Timestamp with a non-timestamp" )
578
562
579
563
elif arr.descr.type_num == NPY_TIMEDELTA:
580
- if isinstance (value, np.ndarray ):
564
+ if util.is_array (value):
581
565
pass
582
566
elif isinstance (value, timedelta):
583
567
return Timedelta(value).value
0 commit comments