select the first 5 rows dataframe pyspark code example Example: select first row first column pyspark industry_count.first()[0]