(other: Series | number | Array<number>, options?: { inplace?: boolean })
| 301 | */ |
| 302 | sub(other: Series | number | Array<number>, options?: { inplace?: boolean }): Series |
| 303 | sub(other: Series | number | Array<number>, options?: { inplace?: boolean }): Series | void { |
| 304 | const { inplace } = { inplace: false, ...options } |
| 305 | |
| 306 | if (this.dtypes[0] == "string") ErrorThrower.throwStringDtypeOperationError("sub") |
| 307 | |
| 308 | const newData = _genericMathOp({ ndFrame: this, other, operation: "sub" }) |
| 309 | |
| 310 | if (inplace) { |
| 311 | this.$setValues(newData as ArrayType1D) |
| 312 | } else { |
| 313 | return utils.createNdframeFromNewDataWithOldProps({ ndFrame: this, newData, isSeries: true }) as Series |
| 314 | } |
| 315 | |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * Return Multiplication of series and other, element-wise (binary operator mul). |
nothing calls this directly
no test coverage detected