Write a PySpark snippet to read a nested JSON dataset, flatten the schema, and write it out to a partitioned Parquet table for Oak St. Health.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.