Created
September 30, 2018 07:46
-
-
Save vinitkumar/96a947d36cb67a77d9503f621c07998e to your computer and use it in GitHub Desktop.
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
from itertools import repeat | |
import csv | |
with open('sheet13.tsv', 'rb') as tsvin, open('new.csv', 'wb') as csvout: | |
tsvin = csv.reader(tsvin, delimiter='\t') | |
csvout = csv.writer(csvout) | |
img_list = [] | |
for row in tsvin: | |
img_list.append({row[0]:row[1].split('.')[0]},) | |
print(img_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment