Spark 3.0
I ran a code df.select("Name").collect()
, and I received this output below. I want to put the result below in a list. I tried adding [0] to the end, but that didn't work.
Row(Name='Andy')
Row(Name='Brandon')
Row(Name='Carl')
expected outcome = ['Andy','Brandon','Carl']