Answers for "python read column data from text file"

0

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]
Posted by: Guest on October-08-2021

Code answers related to "python read column data from text file"

Python Answers by Framework

Browse Popular Code Answers by Language