Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pyspark.RDD.glom#

RDD.glom()[source]#

Return an RDD created by coalescing all elements within each partitioninto a list.

New in version 0.7.0.

Returns
RDD

a newRDD coalescing all elements within each partition into a list

Examples

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

[8]ページ先頭

©2009-2025 Movatter.jp