Question: using this code below Skip the cases column # read tabular files input_file = ../data/Dalziel2016_data.csv with open(input_file) as f: # create iterator for i, line
using this code below Skip the "cases" column
# read tabular files
input_file = "../data/Dalziel2016_data.csv"
with open(input_file) as f:
# create iterator
for i, line in enumerate(f):
# print each line; delete leading/trailing spaces
x = line.strip().split(",")
print(line.strip())
if i > 2: # stop at i = 3 (print top lines)
break
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
