select query in pyspark sql code example Example: pyspark show all values df.persist df.show(df.count, false) // in Scala or 'False' in Python