pyspark.RDD.sampleByKey ======================= .. currentmodule:: pyspark .. automethod:: RDD.sampleByKey