Convert dataframe to nested json records
I have a spark dataframe as follows: ———————————————————————————————- | type | lctNbr | itmNbr | lastUpdatedDate | lctSeqId| T7797_PRD_LCT_TYP_CD| FXT_AIL_ID| pmyVbuNbr | upcId | vndModId| ____________________________________________________________________________ | prd_lct 145 147 2024-07-22T05:24:14 1 1 14 126 008236686661 35216 _____________________________________________________________________________ I want to group this data frame by type, lctNbr, itmNbr, and lastUpdatedDate. I jsut want each […]