How to dynamically convert a dataframe from one schema to another with struct types of the same name
Im trying to convert a pySpark data frame to a similar one which contains struct fields. I have tried a recursive approach but cannot obtain the output structure.