Explode?

https://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=explode#pyspark.sql.functions.explode


For Spark questions like this, try stackoverflow

spark.apache.org/community.html<http://spark.apache.org/community.html>



________________________________
From: Suresh Ayyavoo <sur...@iappsasia.com>
Sent: Sunday, March 12, 2017 8:53:52 PM
To: users@zeppelin.apache.org
Subject: How can i convert below DataFrame array<string> to string

Hi All,

How can i convert below DataFrame [accountID: array<string>, completed_at: 
array<string>, created_at: array<string>] to
[accountID: string, completed_at: string, created_at: string]


root

 |-- accountID: array (nullable = true)

 |    |-- element: string (containsNull = true)

 |-- completed_at: array (nullable = true)

 |    |-- element: string (containsNull = true)

 |-- created_at: array (nullable = true)

 |    |-- element: string (containsNull = true)


root
|-- accountID: string (containsNull =true)
|-- completed_at: string (containsNull =true)
|--create_at : string (containsNull =true)


Thanks


Reply via email to