Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pyspark.RDD.first#

RDD.first()[source]#

Return the first element in this RDD.

New in version 0.7.0.

Returns
T

the first element

Examples

>>>sc.parallelize([2,3,4]).first()2>>>sc.parallelize([]).first()Traceback (most recent call last):...ValueError:RDD is empty

[8]ページ先頭

©2009-2025 Movatter.jp