title: Create a dictionary using the row number in a csv file [Python]
body: <p>I have a CSV file containing survey data on 60 participants. The first column is the participant's number, and for each number corresponds all the data collected from that participants. It looks something like:</p>
  
  <p>Participant number: 1, Gender: Female, Level of study: Postgrad</p>
  
  <p>I would like to create a dictionary where the key is the Participant Number and the value is the whole of the row with all the data, to have something like this:</p>
  
  <p>{1: Female, Postgrad, American, Yes, No, No, Yes, Yes, No...} and so on. I am still a newbie and so far this is what I tried:</p>
  
  <pre><code>with open('surveys.csv', 'r') as f:
      reader = csv.reader(f, delimiter=' ')
      with open('new_surveys.csv', mode='w') as outfile:
              writer = csv.writer(outfile)
              mydict = {rows[0]:rows for rows in reader}
              print(mydict)
  </code></pre>
  
  <p>But this prints something like:</p>
  
  <p>{'\ufeff"': ['\ufeff"'], 'Participant/Question","1.': ['Participant/Question","1.', 'Gender'], ',2.': [',2.', 'Level', 'of', 'study'],} which does not make any sense to me at the moment...</p>
  
  <p>Thank you!</p>
  
  <p>Edit:</p>
  
  <p>This is one complete row of data:</p>
  
  <p><a href="https://i.stack.imgur.com/5ZHQF.png" rel="nofollow noreferrer">One complete row of data, there's 59 more but they all look the same only difference is Yes/No or time of day</a></p>