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