code to create a node diagram for the following demo file,half code is done

(internship - Google Drive)

I want to create a node diagram analysis or similar kind of plot (eg.sankey diagram) for the following demo file and code attached in the link please modify it and help me out.
-->