I have a dataframe that looks like this:
Z1 Z2 Z3 Z4
0 0 A A
0 B 0 0
C 0 C 0
D 0 D 0
0 0 E 0
I want to remove the cells with the value 0 and make it to look like this:
Z1 Z2 Z3 Z4
C B A A
D C
D
E