Could someone please explain the difference between these two?
data=[]
for row in csv_file_object:
data.append(row[1:])
and
data=[]
for row in csv_file_object:
data.append(row)
Could someone please explain the difference between these two?
data=[]
for row in csv_file_object:
data.append(row[1:])
and
data=[]
for row in csv_file_object:
data.append(row)
Assuming row = [1,2,3]:
Then:
row[1:] will be [2,3]
and
row will be [1,2,3]