asof#

swordfish.function.asof()#

For each element y in Y, return the index of the last element in X that is no greater than y.

参数:
  • X (Constant) -- A ector/indexed series/indexed matrix sorted in ascending order.

  • Y (Constant) -- A scalar/vector/tuple/matrix/dictionary/table/array vector.