how to make a modified size table without NULL in python using pandas?

i have a commonality table like this: JOHN line04,25% line05,16% line06,nan% line08,7% BOB line04,nan% line05,nan% line06,30% line08,50% SARAH line04,15% line05,16% line06,50% line08,nan% and i’de like to get: JOHN line04,25% line05,16% line08,7% BOB line08,50% line06,30% SARAH line06,50% line05,16% line04,15% means i need a table that is dynamically defined, and sorted by percentage. of course i don’w…

Details