Skip to content

Commit

Permalink
Final QA updates (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahjelle authored Sep 19, 2023
1 parent 7d2114d commit eab3d89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python-tuple/data_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Employee:

with open("employees.csv", mode="r") as csv_file:
reader = csv.reader(csv_file)
_ = next(reader) # Skip headers
next(reader) # Skip headers
employees = []
for name, age, position in reader:
employees.append(Employee(name, int(age), position))
2 changes: 1 addition & 1 deletion python-tuple/employee_data_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Employee:

with open("employees.csv", mode="r") as csv_file:
reader = csv.reader(csv_file)
_ = next(reader) # Skip headers
next(reader) # Skip headers
employees = []
for name, age, position in reader:
employees.append(Employee(name, int(age), position))
2 changes: 1 addition & 1 deletion python-tuple/employee_named_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Employee(NamedTuple):

with open("employees.csv", mode="r") as csv_file:
reader = csv.reader(csv_file)
_ = next(reader) # Skip headers
next(reader) # Skip headers
employees = []
for name, age, position in reader:
employees.append(Employee(name, int(age), position))
2 changes: 1 addition & 1 deletion python-tuple/employees.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name,job,email
"Joe",32,"Senior Web Developer"
"Lara",40,"Project Manager"
"David",25,"Data Analyst"
"Jane",40,"Senior Python Developer"
"Jane",40,"Senior Python Developer"

0 comments on commit eab3d89

Please sign in to comment.