✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
data = [('A', 1), ('A', 1), ('B', 1)] df = spark.createDataFrame(data, ['k', 'v'])
res = df.distinct().count()
Яким буде результат
res?