Advertisement
skip420

extract_row_csv

Feb 16th, 2021
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import csv
  2. with open('mystates.csv', newline='') as csvfile:
  3.  data = csv.DictReader(csvfile)
  4.  print("Baby_Names")
  5.  print("---------------------------------")
  6.  for row in data:
  7.    print(row['name'], row['rank'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement