my first post reads in a csv and puts it in a list of lists. I didn't entirely read his post. To getcolumnsHere is the first post of OP: " have a text file with hundreds of lines and 10 columns of data separated by commas. I want to split the lines at the commas into 10 indexes and access each index individually. The code below only works on the first index - items[0] - and will print the first column and all the rows. If I change it to items[1] it will crash."
-> Not one person provided a solution that OP requested. If Pandas is used then fine, why not. But the data tables still need to be arranged then in columnar index as OP requested.
df=Pandas.read_csv(file)
df.col(0)
df.col(1)
savoir faire is everywhere