This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name | age | location | |
---|---|---|---|
chris | 10 | nc | |
ben | 25 | dc | |
dan | 20 | va | |
ben | 25 | dc | |
dan | 20 | va | |
chris | 10 | nc | |
ben | 25 | dc | |
dan | 20 | va | |
ben | 25 | dc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
https://docs.python.org/3/library/csv.html | |
''' | |
import csv #import the required libraries | |
#open the file and assign it an identifier | |
with open('people.csv') as people: | |
#create a Dictionary Reader and pass the open file | |
my_csv_file = csv.DictReader(people) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import calendar | |
''' | |
CSV to CLF log file formatter | |
Ben Shepherd | |
Go Fish Digital | |
August 2018 | |
''' |