I have a CSV file which has the following format:
id,case1,case2,case3
123,null,X,Y
342,X,X,Y
456,null,null,null
789,null,null,X
above is the sample data that could be in that file. So for each line I need to know which of the case is not null. Is there an easy way to find the which case(s) are not null instead of splitting the string and go through each element in the list to find out which one is not null?
Result:
123,case2:case3
342,case1:case2:case3
456:None
789:case3