Skip to main content

Home/ Useful Technologies/ Group items matching "csv" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
George Bradford

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])"
George Bradford

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

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