* Get Less than of dataframe and other, element-wise (binary operator lt). * @param other DataFrame, Series, Array or Scalar number to compare with * @param options.axis 0 or 1. If 0, add column-wise, if 1, add row-wise * @example * ``` * const df = new DataFrame([[1, 2], [3
(other: DataFrame | Series | number | Array<number>, options?: { axis?: 0 | 1 })
| 1095 | * ``` |
| 1096 | */ |
| 1097 | lt(other: DataFrame | Series | number | Array<number>, options?: { axis?: 0 | 1 }): DataFrame { |
| 1098 | const { axis } = { axis: 1, ...options } |
| 1099 | |
| 1100 | if (this.$frameIsNotCompactibleForArithmeticOperation()) { |
| 1101 | throw Error("TypeError: lt operation is not supported for string dtypes"); |
| 1102 | } |
| 1103 | |
| 1104 | if ([0, 1].indexOf(axis) === -1) { |
| 1105 | throw Error("ParamError: Axis must be 0 or 1"); |
| 1106 | } |
| 1107 | |
| 1108 | const tensors = this.$getTensorsForArithmeticOperationByAxis(other, axis); |
| 1109 | return this.$logicalOps(tensors, "lt") |
| 1110 | } |
| 1111 | |
| 1112 | /** |
| 1113 | * Returns "greater than" of dataframe and other. |
nothing calls this directly
no test coverage detected