Databricks Pyspark: Nested to Flatten Format This code bit helps us to extract dataframe objects to a more manageable format.