QuestionQ238
VerifiedData Processing & TransformationsA data engineer has a PySpark DataFrame, events_df, that contains a nested device struct, which itself contains a nested location struct, as shown:

The objective is to flatten the nested fields into root-level columns while retaining the event identifiers and timestamp.
Which PySpark expression accomplishes this?
Community Discussion