Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read column data from text file

import csv

with open('path/to/file.txt') as inf:
    reader = csv.reader(inf, delimiter=" ")
    second_col = list(zip(*reader))[1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #read #column #data #text #file
ADD COMMENT
Topic
Name
1+8 =