Python pyspark DataFrame.shape用法及代码示例本文简要介绍 pyspark.pandas.DataFrame.shape 的用法。 用法: property DataFrame.shape返回一个表示 DataFrame 维度的元组。 例子: >>> df = ps.DataFrame({'col1': [1, 2], 'col2': [3, 4]}) >>> df.shape (2, 2) >>> df = ps.DataFrame({'col...