i have created a spark DF which include around 20 columns. All these are updated with 0, 1 . I need to aggregate the result.
For example:- I have col1 col2 …. All these are updated with 0,1 .
I want to pull out a summary as :-
Values| Col1 | col2
0 Count count
1 Count count
That will give us, how many zeros are there in col1 and how many 1s.