I have df that looks like this:
col1 col2 col3 col4
1 0 1 0
1 0 1 0
1 0 1 0
1 0 1 0
1 0 1 0
How do I convert col1-col3
into a list of list of tuples and assign to variable? and then create an array of only col4 and assign to variable?
example final result:
lst = [[1,0,1],[1,0,1],[1,0,1],[1,0,1],[1,0,1]]]
lst_col4 = [[0],[0],[0],[0],[0]]