标签: scala rdd
我正在读取csv文件,并且有一列想要统计其中的每个元素。我在Scala中写作。
def problem4(trips: RDD[Trip]): String = { val result = trips.map(x=>x.zip_code).collect()
}