I have a column with data like this:
[[[-77.1082606, 38.935738]] ,Point]
I want it split out like:
column 1 column 2 column 3
-77.1082606 38.935738 Point
How is that possible using PySpark, or alternatively Scala (Databricks 3.0)? I know how to explode columns but not split up these structs. Thanks!!!
EDIT: Here is the schema of the column:
|-- geometry: struct (nullable = true)
| |-- coordinates: string (nullable = false)
| |-- type: string (nullable = false
array<array<>>? Please post result ofprintSchema