title: Updating a specific row in csv file
body: <p>I have a csv file like this:</p>
  
  <pre><code>Name,PhoneNumber,Adress
  </code></pre>
  
  <p>I want to get input from the user and change the name. I can delete the whole row.</p>
  
  <pre><code>name = input("Enter a name : ")
  fieldnames = ["name", "number", 'address']
  with open('book.csv', 'r') as csvfile, open('outputfile.csv', 'w') as output:
      reader = csv.DictReader(csvfile, fieldnames=fieldnames)
      writer = csv.DictWriter(output, fieldnames=fieldnames)
      for row in reader:
          if not name == row['name']:
              writer.writerow({'name': row['name'], 'number': row['number'], 'address': row['address']})
  shutil.move('outputfile.csv','book.csv')
  </code></pre>
  
  <p>This is my deleting code. </p>