Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pyspark.RDD.keys#

RDD.keys()[source]#

Return an RDD with the keys of each tuple.

New in version 0.7.0.

Returns
RDD

aRDD only containing the keys

See also

RDD.values()

Examples

>>>rdd=sc.parallelize([(1,2),(3,4)]).keys()>>>rdd.collect()[1, 3]

[8]ページ先頭

©2009-2025 Movatter.jp