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