scalarArith

fnSeries scalarArith(string op, T)(Series a, T scalar, bool scalarOnLeft = false)

The arithmetic operations between a Series and a scalar of a supported type, in either operand order. The supertype rules apply to the scalar's kind as well; INT8 series + 1 (an int) yields INT32.

Parameters

opone of `"+"`, `"-"`, `"*"`, `"/"`, `"%"`
athe Series operand
scalarthe scalar operand (broadcast)
scalarOnLefttrue for scalar op a, false for a op scalar

Returns

the result Series.

Throws

DataFrameException on illegal dtype pairs.