my version as below .
dt = Current Data Table();
For( i = N Col( dt ), i >= 1, i--,
If( (Col N Missing( Column( i ) ) / N Row()) == 1,
dt << delete columns( i )
)
);
Simple and effective. Thanks
Thanks 😁
Piggybacking off @fitri , this worked for me
// get col names
colnames = dt << Get Column Names;
// delete empty columns
For( j = 1, j <= N Items( colnames ), j++,
If( Col N Missing( Column( colnames[j] ) ) / N Row() == 1,
dt << delete columns( colnames[j] )
)
);