0

Hi is it possible to iterate through the values in the dataframe using pyspark code in databricks notebook?

1 Answers1

0

Yes You can , You can find lot of options here

rows = df3.select('columnname').collect()

final_list = []
for i in rows:
    final_list.append(i[0])

print(final_list)