pyspark.AccumulatorParam.addInPlace

AccumulatorParam.addInPlace(value1, value2)[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.