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