I would be grateful if someone could help me with this code.
I want to check whether all the entries in any column of the generated table is equal to one
If the condition is satisfied in any column, the result shall be the column’s heading.
If the condition is not satisfied in all columns, the result shall be none.
For example, I am attaching a file that outputs a table. This table contains no columns with all values are equal to one, so I am expecting the result to be none.