pyspark.AccumulatorParam.addInPlace

AccumulatorParam.addInPlace(value1: T, value2: T) → T[source]

Add two values of the accumulator’s data type, returning a new value; for efficiency, can also update value1 in place and return it.