concept first row in category pyspark
appears as: first row

This is an excerpt from Manning's book Data Analysis with Python and PySpark.
The
headeroptional parameter takes a Boolean flag. If set to true, it’ll use the first row of your file (or files, if you’re ingesting many) and use it to set your column names.