Skip to main content

Home/ Useful Technologies/ Group items tagged csv

Rss Feed Group items tagged

1More

Reading a tab delimited text file. - 1 views

  •  
    "You could also use the csv module import csv myfileobj = open("myfiletab.txt","read") csv_read = csv.reader(myfileobj,dialect=csv.excel_tab) myval1 = [] myval2 = [] myval3 = [] for line in csv_read: # filter header and stuff using some criterion if len(line) = 3: myval1.append(line[0]) myval2.append(line[1]) myval3.append(line[2])"
1More

Python3: Structured text files (CSV) - University Computing Service - 0 views

  •  
    Python 3 - Reading CSV files
1 - 2 of 2
Showing 20 items per page