If I want to retrieve the Categories, then how can I access the value of the wrapped array of categories the tree is shown as in the image.

If I want to retrieve the Categories, then how can I access the value of the wrapped array of categories the tree is shown as in the image.

 
    
     
    
    Try this :
from pyspark.sql import functions as F
df.select(F.explode("categories")).show()
another way could be also to use getItems method applied to your column categories.
