メインコンテンツまでスキップ

カウント( DataFrame )

このDataFrameの行数を返します。

構文

count()

戻り値

int: 行数。

Python
df = spark.createDataFrame(
[(14, "Tom"), (23, "Alice"), (16, "Bob")], ["age", "name"])

df.count()
# 3
このページの見出し