pyspark select columns from dataframe code example Example: pyspark select columns df.select("firstname","lastname")