DataFrame.
columns
Returns all column names as a list.
New in version 1.3.0.
Examples
>>> df.columns ['age', 'name']
previous
pyspark.sql.DataFrame.collect
next
pyspark.sql.DataFrame.corr