Retrieve all data in the first and second column only and put it into a single variable.
How should i retrieve all data in column 1 and column2?
*I'm newbie in python
*I'm using Jupiter
If you want a string from each column
var1 = ''.join(data)
var2 = ''.join(data)
I assume you want all values from column 1 in one variable and all values from column 2 in another variable?
column1 = [row for row in data] # makes a list of all values of column 1
column2 = [row for row in data] # does the same for column 2
Please login first before posting an answer.