Question: how do i take a csv file like this and split up the file into a dict where the top entry is the key and

how do i take a csv file like this and split up the file into a dict where the top entry is the key and the rest of the column is a list that is the value. can only use loops, dicts, lists. and python i will upvote!! how do i take a csv file like this and split up

Event, E, px, py, pz, pt,eta, phi,Q,MET, phiMET 1, 11, 111, 1333, 1433, 145, 15, 16, 1535, 14343, 123 2,22,222,233,23434,24343,21341, 2423,225,2123,22 3,33,333,333,33434, 343,323423,3665,387,43433,3323 3,44,444,433,43434,4324,43243, 44324,4123,4543,423 5,55,555,533,534343,5421,56541,5765,51354,552452,52323 6,66,666,633,64343,6987,6345,62234,6123,6654,6223232

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!