How to find the size or shape of a DataFrame in PySpark? November 21, 2022 by Tarik You can get its shape with: print((df.count(), len(df.columns)))