I am a beginnering in Python and I don\'t have an idea how I could perform the following transformation and analysis.
I have a file that looks similar to the followi