cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Rows of Spark Dataframe to List

HariharaSam
Contributor

How to convert the rows of a spark dataframe to list without using Pandas.

Input Spark Dataframe :

imageExpected Output:

[['A','B','C'],['1','2','3'],['4','5','6'],['7','8','9']]

0 REPLIES 0
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.