I have this table bellow:
FrameForm | Sections | Framefrom_section | FrameFrom_echelon
----------|----------|-------------------|------------------
70 | 11/12 | 11/12 | 50004
70 | 13/14 | 13/14 | 60003
How can I do a test via pySpark
on a FrameFrom
column to combine the two values of Framefrom_section
and FrameFrom_echelon
to obtain this result:
FrameForm | Framefrom_section | FrameFrom_echelon
----------|-------------------|------------------
70 | [11/12,13/14] | [50004,60003]