There is a datatype of struct as below:
array<
struct<
handicap:
struct<ABC:string,
high:string,
low:string,
>,
,
index:bigint,
LGN:bigint,
LP:
array
<struct
<
REFNO:string,
BNK:boolean,
ISA:boolean,
isInRunning:boolean,
mktref:string,
OR:string,
PN:bigint,
place:bigint,
placeTerms:
struct
<
den:bigint,
num:bigint,
places1:bigint
>,
places1:string,
traderUser:string
>
>
>
>
How do I capture the path of the actual variable using pyspark. eg: if I want refno: I need the header path as : handicap_LP.ref_no and if I want tofr den: the path I require is handicap.LP.placeterms.den How do I can capture that?